From 34e3338cb10ebc753c75fb7a6116a2690253dada Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Fri, 19 Feb 2021 19:14:55 +0100 Subject: [PATCH] feat: add npm scripts for different package managers --- .gitignore | 7 ++++--- package.json | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index c862395dce..5386492d7f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,10 +8,11 @@ # dependencies node_modules package-lock.json -yarn-lock.json +yarn.lock +pnpm-lock.yaml # IDEs and editors -/.idea +.idea .project .classpath .c9/ @@ -50,4 +51,4 @@ Thumbs.db !packages/core/xml/index.js # types -ios-typings-prj \ No newline at end of file +ios-typings-prj diff --git a/package.json b/package.json index 2c89dcc4bf..92818b5ea3 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,10 @@ "license": "MIT", "scripts": { "clean": "git clean -f -X -d", - "setup": "npm run clean && npm i && ts-patch install && nx run core:setup", + "setup": "npm run clean && npm install", + "setup:yarn": "yarn run clean && yarn", + "setup:pnpm": "pnpm run clean && pnpm install", + "postinstall": "ts-patch install && nx run core:setup", "start": "nps", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s" },