Skip to content

Commit d7b2c84

Browse files
authored
feat: add npm scripts for different package managers, ie: yarn, pnpm (#9230)
1 parent ebbc070 commit d7b2c84

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
# dependencies
99
node_modules
1010
package-lock.json
11-
yarn-lock.json
11+
yarn.lock
12+
pnpm-lock.yaml
1213

1314
# IDEs and editors
14-
/.idea
15+
.idea
1516
.project
1617
.classpath
1718
.c9/
@@ -50,4 +51,4 @@ Thumbs.db
5051
!packages/core/xml/index.js
5152

5253
# types
53-
ios-typings-prj
54+
ios-typings-prj

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"license": "MIT",
55
"scripts": {
66
"clean": "git clean -f -X -d",
7-
"setup": "npm run clean && npm i && ts-patch install && nx run core:setup",
7+
"setup": "npm run clean && npm install",
8+
"setup:yarn": "yarn run clean && yarn",
9+
"setup:pnpm": "pnpm run clean && pnpm install",
10+
"postinstall": "ts-patch install && nx run core:setup",
811
"start": "nps",
912
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
1013
},

0 commit comments

Comments
 (0)