diff --git a/package.json b/package.json index b7e09dd..41d30ee 100644 --- a/package.json +++ b/package.json @@ -135,25 +135,29 @@ } }, "scripts": { - "vscode:prepublish": "npm run package", - "vsix": "vsce package", + "build": "npm run build:webview && npm run vsix", + "build:webview": "cd webview-ui && npm run build", + "changeset": "changeset", + "check-types": "tsc --noEmit", "compile": "npm run check-types && npm run lint && node esbuild.js", + "compile-tests": "tsc -p . --outDir out", + "install:all": "npm install && cd webview-ui && npm install", + "lint": "eslint src --ext ts", + "package": "npm run build:webview && npm run check-types && npm run lint && node esbuild.js --production", + "pretest": "npm run compile-tests && npm run compile && npm run lint", + "start:webview": "cd webview-ui && npm run start", + "test": "vscode-test", + "test:webview": "cd webview-ui && npm run test", + "prepare": "husky", + "publish:marketplace": "vsce publish", + "publish": "npm run build && changeset publish && npm install --package-lock-only", + "version-packages": "changeset version && npm install --package-lock-only", + "vscode:prepublish": "npm run package", + "vsix": "npx vsce package --out bin", "watch": "npm-run-all -p watch:*", "watch:esbuild": "node esbuild.js --watch", "watch:tsc": "tsc --noEmit --watch --project tsconfig.json", - "package": "npm run build:webview && npm run check-types && npm run lint && node esbuild.js --production", - "compile-tests": "tsc -p . --outDir out", - "watch-tests": "tsc -p . -w --outDir out", - "pretest": "npm run compile-tests && npm run compile && npm run lint", - "check-types": "tsc --noEmit", - "lint": "eslint src --ext ts", - "test": "jest", - "install:all": "npm install && cd webview-ui && npm install", - "start:webview": "cd webview-ui && npm run start", - "build:webview": "cd webview-ui && npm run build", - "test:webview": "cd webview-ui && npm run test", - "publish:marketplace": "vsce publish", - "prepare": "husky" + "watch-tests": "tsc -p . -w --outDir out" }, "devDependencies": { "@changesets/cli": "^2.27.10",