Skip to content

Commit

Permalink
build(yarn): migrate to CorePack
Browse files Browse the repository at this point in the history
Signed-off-by: charelle.sandig <[email protected]>
  • Loading branch information
charellesandig committed Apr 5, 2023
1 parent 259515b commit 3d8892e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ git config --system core.longpaths true
cd cactus
```

* Run this command to enable corepack (Corepack is included by default with all Node.js installs, but is currently opt-in.)

```sh
npm run enable-corepack
```

* Run the initial configuration script (can take a long time, 10+ minutes on a low-spec laptop)

```sh
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"reset": "run-s reset:git reset:node-modules reset:yarn-lock configure",
"configure": "yarn run init-registries && yarn install --frozen-lockfile --non-interactive && yarn run build:dev:backend",
"install-yarn": "npm install --global [email protected]",
"enable-corepack": "npm i -g corepack && corepack enable && corepack prepare [email protected] --activate",
"custom-checks": "TS_NODE_PROJECT=./tools/tsconfig.json node --trace-deprecation --experimental-modules --abort-on-uncaught-exception --loader ts-node/esm --experimental-specifier-resolution=node ./tools/custom-checks/run-custom-checks.ts",
"tools:validate-bundle-names": "TS_NODE_PROJECT=./tools/tsconfig.json node --trace-deprecation --experimental-modules --abort-on-uncaught-exception --loader ts-node/esm --experimental-specifier-resolution=node ./tools/validate-bundle-names.js",
"generate-api-server-config": "node ./tools/generate-api-server-config.js",
Expand Down

0 comments on commit 3d8892e

Please sign in to comment.