Skip to content

Commit d9a40fd

Browse files
committed
fix: monorepo script changes
Ensure that copying the .vsix to the root folder always works. Also, make sure running npm i at root also runs postinstall scripts for workspaces.
1 parent 8fee66b commit d9a40fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"scripts": {
2323
"prepare": "ts-node ./scripts/prepare.ts",
24-
"postinstall": "npm run buildCustomLintPlugin",
24+
"postinstall": "npm run buildCustomLintPlugin && npm run postinstall -ws --if-present",
2525
"buildCustomLintPlugin": "npm run build -w plugins/eslint-plugin-aws-toolkits",
2626
"compile": "npm run compile -w packages/",
2727
"testCompile": "npm run testCompile -w packages/",

packages/toolkit/scripts/build/package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function main() {
148148
console.log(`VSIX Version: ${packageJson.version}`)
149149

150150
const vsixName = `aws-toolkit-vscode-${packageJson.version}.vsix`
151-
fs.moveSync(vsixName, `../../${vsixName}`)
151+
fs.moveSync(vsixName, `../../${vsixName}`, { overwrite: true })
152152
} catch (e) {
153153
console.log(e)
154154
throw Error('package.ts: failed')

0 commit comments

Comments
 (0)