Skip to content

Commit fc1fa5a

Browse files
committed
added publish next script in package.json
1 parent 5b5d616 commit fc1fa5a

File tree

9 files changed

+18
-17
lines changed

9 files changed

+18
-17
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"storybook:dev": "npm run build:compile && npm run storybook:bundle && wca analyze packages --format json --outFile custom-elements.json",
3737
"storybook:build": "npm run storybook:dev && build-storybook -s assets && cpx .storybook/CNAME storybook-static",
3838
"storybook:deploy": "npm run storybook:build && storybook-to-ghpages -e storybook-static",
39-
"storybook:bundle": "rollup -c ./.storybook/rollup.config.js"
39+
"storybook:bundle": "rollup -c ./.storybook/rollup.config.js",
40+
"publish:next": "lerna run publish:next --scope @microsoft/*"
4041
},
4142
"storybook-deployer": {
4243
"gitUsername": "@microsoft/mgt",

packages/mgt-components/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
"compile": "tsc -b",
3232
"compile:watch": "tsc -w",
3333
"lint": "tslint -c ../../tslint.json 'src/**/*.ts'",
34-
"prepack": "shx rm -rf *.tgz && npm run build",
3534
"postpack": "cpx *.tgz ../../artifacts",
3635
"sass": "gulp sass --cwd .",
3736
"sass:watch": "gulp watchSass --cwd .",
38-
"setLicense": "gulp setLicense --cwd ."
37+
"setLicense": "gulp setLicense --cwd .",
38+
"publish:next": "npm publish --tag next"
3939
},
4040
"dependencies": {
4141
"@microsoft/microsoft-graph-types": "^1.22.0",

packages/mgt-element/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"src"
2121
],
2222
"scripts": {
23-
"build": "npm run clean && npm run build:compile",
23+
"build": "npm run setVersion && npm run clean && npm run build:compile",
2424
"build:compile": "npm run compile",
2525
"build:watch": "npm run compile:watch",
2626
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
@@ -30,7 +30,7 @@
3030
"setVersion": "gulp setVersion --cwd .",
3131
"setLicense": "gulp setLicense --cwd .",
3232
"postpack": "cpx *.tgz ../../artifacts",
33-
"prepack": "shx rm -rf *.tgz && npm run setVersion && npm run build"
33+
"publish:next": "npm publish --tag next"
3434
},
3535
"dependencies": {
3636
"@microsoft/microsoft-graph-client": "^2.0.0",

packages/mgt-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"scripts": {
2828
"build": "npm run clean && npm run generate && tsc",
2929
"clean": "node ./scripts/clean.js",
30-
"prepack": "shx rm -rf *.tgz && npm run build",
3130
"postpack": "cpx *.tgz ../../artifacts",
32-
"generate": "wca analyze ../mgt-components/src --format json --outFile temp/web-components.json && node ./scripts/generate.js"
31+
"generate": "wca analyze ../mgt-components/src --format json --outFile temp/web-components.json && node ./scripts/generate.js",
32+
"publish:next": "npm publish --tag next"
3333
},
3434
"dependencies": {
3535
"@microsoft/mgt": "*",

packages/mgt/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
"copy:loader": "cpx src/bundle/mgt-loader.js dist/bundle",
3636
"copy:wc": "cpx ../../node_modules/@webcomponents/webcomponentsjs/bundles/**/* dist/bundle/wc/bundles && cpx ../../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js dist/bundle/wc",
3737
"lint": "tslint -c ../../tslint.json 'src/**/*.ts'",
38-
"prepack": "shx rm -rf *.tgz && npm run build",
3938
"postpack": "cpx *.tgz ../../artifacts",
4039
"rollup": "rollup -c",
4140
"sass": "gulp sass --cwd .",
4241
"sass:watch": "gulp watchSass --cwd .",
4342
"setLicense": "gulp setLicense --cwd .",
4443
"test": "jest",
45-
"test:watch": "jest --watch"
44+
"test:watch": "jest --watch",
45+
"publish:next": "npm publish --tag next"
4646
},
4747
"dependencies": {
4848
"@microsoft/mgt-element": "*",

packages/providers/mgt-msal-provider/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"compile:watch": "tsc -w",
3737
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
3838
"setLicense": "gulp setLicense --cwd .",
39-
"prepack": "shx rm -rf *.tgz && npm run build",
40-
"postpack": "cpx *.tgz ../../../artifacts"
39+
"postpack": "cpx *.tgz ../../../artifacts",
40+
"publish:next": "npm publish --tag next"
4141
},
4242
"dependencies": {
4343
"@microsoft/mgt-element": "*",

packages/providers/mgt-proxy-provider/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"compile:watch": "tsc -w",
3636
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
3737
"setLicense": "gulp setLicense --cwd .",
38-
"prepack": "shx rm -rf *.tgz && npm run build",
39-
"postpack": "cpx *.tgz ../../../artifacts"
38+
"postpack": "cpx *.tgz ../../../artifacts",
39+
"publish:next": "npm publish --tag next"
4040
},
4141
"dependencies": {
4242
"@microsoft/mgt-element": "*"

packages/providers/mgt-sharepoint-provider/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"compile:watch": "tsc -w",
3838
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
3939
"setLicense": "gulp setLicense --cwd .",
40-
"prepack": "shx rm -rf *.tgz && npm run build",
41-
"postpack": "cpx *.tgz ../../../artifacts"
40+
"postpack": "cpx *.tgz ../../../artifacts",
41+
"publish:next": "npm publish --tag next"
4242
},
4343
"dependencies": {
4444
"@microsoft/mgt-element": "*"

packages/providers/mgt-teams-provider/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"compile:watch": "tsc -w",
3939
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
4040
"setLicense": "gulp setLicense --cwd .",
41-
"prepack": "shx rm -rf *.tgz && npm run build",
42-
"postpack": "cpx *.tgz ../../../artifacts"
41+
"postpack": "cpx *.tgz ../../../artifacts",
42+
"publish:next": "npm publish --tag next"
4343
},
4444
"dependencies": {
4545
"@microsoft/mgt-element": "*",

0 commit comments

Comments
 (0)