diff --git a/cli/src/ovsx b/cli/ovsx.js similarity index 86% rename from cli/src/ovsx rename to cli/ovsx.js index 8b83163f..d2395895 100755 --- a/cli/src/ovsx +++ b/cli/ovsx.js @@ -7,4 +7,4 @@ if (semver.lt(process.versions.node, '20.0.0')) { process.exit(1); } -require('./main')(process.argv); +require('./lib/main')(process.argv); diff --git a/cli/package.json b/cli/package.json index 15e5426f..ebd867c7 100644 --- a/cli/package.json +++ b/cli/package.json @@ -25,11 +25,12 @@ ], "files": [ "lib", + "ovsx.js", "src" ], "main": "lib/index", "types": "lib/index", - "bin": "lib/ovsx", + "bin": "ovsx", "engines": { "node": ">= 20" }, @@ -63,7 +64,7 @@ "scripts": { "clean": "rimraf lib", "prebuild": "node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts", - "build": "tsc -p ./tsconfig.json && yarn run lint && cp src/ovsx lib/ovsx", + "build": "tsc -p ./tsconfig.json && yarn run lint", "watch": "tsc -w -p ./tsconfig.json", "lint": "eslint -c ./configs/eslintrc.mjs src", "prepare": "yarn run clean && yarn run prebuild && yarn run build", diff --git a/cli/yarn.lock b/cli/yarn.lock index 1d2f1779..ac979639 100644 --- a/cli/yarn.lock +++ b/cli/yarn.lock @@ -2661,7 +2661,7 @@ __metadata: typescript: "npm:^5.6.3" yauzl: "npm:^3.1.3" bin: - ovsx: lib/ovsx + ovsx: ovsx languageName: unknown linkType: soft