new way to build and bundle

This commit is contained in:
frelodev 2023-12-24 15:06:43 +01:00
parent 55a4cf111d
commit a18c5358bd
2 changed files with 11 additions and 4 deletions

1
.gitignore vendored
View file

@ -1,5 +1,4 @@
.vscode
.vscodeignore
node_modules

View file

@ -2,7 +2,11 @@
"name": "codempvscode",
"displayName": "codempvscode",
"description": "",
"repository": "https://github.com/codewithotherpeopleandchangenamelater/codemp-vscode",
"version": "0.0.1",
"napi": {
"name": "index"
},
"engines": {
"vscode": "^1.81.0"
},
@ -51,10 +55,13 @@
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"compile": "napi build && tsc -p ./"
"compile": "napi build && tsc -p ./",
"build": "napi build --release",
"build:debug": "napi build",
"bundle": "vsce package"
},
"devDependencies": {
"@napi-rs/cli": "^1.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.81.0",
@ -67,6 +74,7 @@
"typescript": "^5.1.6"
},
"dependencies": {
"@napi-rs/cli": "^2.16.3"
"@napi-rs/cli": "^2.16.3",
"@vscode/vsce": "^2.22.0"
}
}