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 .vscode
.vscodeignore
node_modules node_modules

View file

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