From 8a590f33b311ec88d0c78ae54ea8554bd215237c Mon Sep 17 00:00:00 2001 From: Mohan Raj Rajamanickam Date: Tue, 3 May 2022 13:33:14 -0700 Subject: [PATCH] refactor: compile and packaging scripts to use pnpm --- .npmrc | 5 ++++- package.json | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.npmrc b/.npmrc index 03931970f9..ecf9555dd6 100644 --- a/.npmrc +++ b/.npmrc @@ -13,4 +13,7 @@ engine-strict=true # local packages from the workspace are preferred over packages from the registry, even if there is a newer version of the package in the registry prefer-workspace-packages=true -auto-install-peers=true \ No newline at end of file +auto-install-peers=true + +# pnpm will run any pre/post scripts automatically +enable-pre-post-scripts=true diff --git a/package.json b/package.json index 96bf31d22d..168e7ddee6 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "clean": "pnpm run clean && git clean -xfd", "reinstall": "git clean -xfd && pnpm install --frozen-lockfile", "compile": "tsc --build", - "postcompile": "lerna run copy:files && lerna run webpack", + "postcompile": "pnpm -r run copy:files && pnpm -r run webpack", "compile:clean": "tsc --build --clean && npm run compile", "compile:watch": "npm run compile && tsc --build --watch", "lint": "lerna run lint", @@ -77,7 +77,7 @@ "check:links": "find . -name \\*.md -not -path '*/node_modules/*' -print0 | xargs -0 -n1 npx markdown-link-check --quiet --alive 200,206,429", "check:deps": "lerna exec --no-bail --stream depcheck", "check:typescript-project-references": "workspaces-to-typescript-project-references --includesRoot --check", - "vscode:package": "lerna run vscode:package --concurrency 1 && node scripts/reformat-with-prettier", + "vscode:package": "pnpm run -r --workspace-concurrency=1 vscode:package", "vscode:sha256": "lerna run vscode:sha256 --concurrency 1", "vscode:publish": "lerna run vscode:publish --concurrency 1", "watch": "lerna run --parallel watch",