Skip to content

Commit db34163

Browse files
committed
update package.json to release to open-vsx
1 parent 6bcc56e commit db34163

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

inlang/packages/sherlock/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
"dev": "DEV=true node ./build.js",
224224
"package": "pnpm vsce package --no-dependencies",
225225
"publish": "pnpm vsce publish --no-dependencies",
226-
"publish:open-vsx": "node publish-openvsx.js",
226+
"publish:open-vsx": "node --experimental-json-modules publish-openvsx.js",
227227
"vscode:prepublish": "npm run build",
228228
"---- EDITOR ----------------------------------------------------------": "",
229229
"editor:build": "cd src/utilities/editor/sherlock-editor-app && pnpm run build",

inlang/packages/sherlock/publish-openvsx.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import { execSync } from "node:child_process"
44
import path, { dirname } from "node:path"
55
import { fileURLToPath, URL } from "node:url"
6-
import packageJson from "./package.json" assert { type: "json" }
6+
import { createRequire } from "module"
7+
const require = createRequire(import.meta.url)
8+
const packageJson = require("./package.json")
79

810
// Ensure environment variables are checked properly
911
if (!process.env.OPEN_VSX_TOKEN) {

0 commit comments

Comments
 (0)