Skip to content

Commit f87cfab

Browse files
committed
Fix scripts
1 parent f6227ce commit f87cfab

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

package.json

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "${EXTENSION_NAME}",
2+
"name": "devchat",
33
"displayName": "${ASSISTANT_NAME_ZH}",
44
"description": "Write prompts, not code",
55
"version": "0.1.74",
@@ -344,24 +344,21 @@
344344
}
345345
},
346346
"scripts": {
347-
"build:gui": "cd ./gui && yarn && yarn vscode",
348347
"vscode:uninstall": "node ./dist/uninstall",
349-
"vscode:prepublish": "npm run package",
350-
"compile": "webpack",
351-
"watch": "node prebuild.js && webpack --watch",
352348
"prebuild": "node prebuild.js",
353349
"postbuild": "git checkout -- assets package.json",
350+
"build:gui": "cd ./gui && yarn && yarn vscode",
351+
"build": "webpack --config webpack.config.js && npm run build:gui",
354352
"prepackage": "node prebuild.js",
355353
"postpackage": "git checkout -- assets package.json",
356-
"package": "webpack --mode production --devtool hidden-source-map",
357-
"compile-tests": "tsc -p . --outDir out",
358-
"watch-tests": "npm run prebuild && tsc -p . -w --outDir out",
359-
"pretest": "npm run compile-tests && npm run compile && npm run lint",
354+
"package": "webpack --mode production --devtool hidden-source-map && vsce package",
355+
"dev": "webpack serve --config webpack.config.js --open",
356+
"watch": "npm run prebuild && webpack --watch",
360357
"lint": "eslint src --ext ts",
361358
"test": "mocha",
362-
"build": "webpack --config webpack.config.js && cd ./gui && yarn && yarn vscode",
363-
"dev": "webpack serve --config webpack.config.js --open",
364-
"idea": "webpack --config webpack.idea.config.js && mv dist/main.js dist/main.html ../devchat-intellij/src/main/resources/static && echo '🎆done'"
359+
"pretest": "npm run compile-tests && npm run compile && npm run lint",
360+
"compile-tests": "tsc -p . --outDir out",
361+
"watch-tests": "npm run prebuild && tsc -p . -w --outDir out"
365362
},
366363
"devDependencies": {
367364
"@babel/core": "^7.21.8",

0 commit comments

Comments
 (0)