diff --git a/package.json b/package.json index a7613a317d..cb632dcb13 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "storybook:dev": "npm run build:compile && npm run storybook:bundle && wca analyze packages --format json --outFile custom-elements.json", "storybook:build": "npm run storybook:dev && build-storybook -s assets && cpx .storybook/CNAME storybook-static", "storybook:deploy": "npm run storybook:build && storybook-to-ghpages -e storybook-static", - "storybook:bundle": "rollup -c ./.storybook/rollup.config.js" + "storybook:bundle": "rollup -c ./.storybook/rollup.config.js", + "publish:next": "lerna run publish:next --scope @microsoft/*" }, "storybook-deployer": { "gitUsername": "@microsoft/mgt", diff --git a/packages/mgt-components/package.json b/packages/mgt-components/package.json index 3059390b5e..d1642b3271 100644 --- a/packages/mgt-components/package.json +++ b/packages/mgt-components/package.json @@ -31,11 +31,11 @@ "compile": "tsc -b", "compile:watch": "tsc -w", "lint": "tslint -c ../../tslint.json 'src/**/*.ts'", - "prepack": "shx rm -rf *.tgz && npm run build", "postpack": "cpx *.tgz ../../artifacts", "sass": "gulp sass --cwd .", "sass:watch": "gulp watchSass --cwd .", - "setLicense": "gulp setLicense --cwd ." + "setLicense": "gulp setLicense --cwd .", + "publish:next": "npm publish --tag next" }, "dependencies": { "@microsoft/microsoft-graph-types": "^1.22.0", diff --git a/packages/mgt-element/package.json b/packages/mgt-element/package.json index 54d4579ee6..8a153e6bb9 100644 --- a/packages/mgt-element/package.json +++ b/packages/mgt-element/package.json @@ -20,7 +20,7 @@ "src" ], "scripts": { - "build": "npm run clean && npm run build:compile", + "build": "npm run setVersion && npm run clean && npm run build:compile", "build:compile": "npm run compile", "build:watch": "npm run compile:watch", "clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo", @@ -30,7 +30,7 @@ "setVersion": "gulp setVersion --cwd .", "setLicense": "gulp setLicense --cwd .", "postpack": "cpx *.tgz ../../artifacts", - "prepack": "shx rm -rf *.tgz && npm run setVersion && npm run build" + "publish:next": "npm publish --tag next" }, "dependencies": { "@microsoft/microsoft-graph-client": "^2.0.0", diff --git a/packages/mgt-react/package.json b/packages/mgt-react/package.json index f6268ec4f3..e79ca666e2 100644 --- a/packages/mgt-react/package.json +++ b/packages/mgt-react/package.json @@ -27,9 +27,9 @@ "scripts": { "build": "npm run clean && npm run generate && tsc", "clean": "node ./scripts/clean.js", - "prepack": "shx rm -rf *.tgz && npm run build", "postpack": "cpx *.tgz ../../artifacts", - "generate": "wca analyze ../mgt-components/src --format json --outFile temp/web-components.json && node ./scripts/generate.js" + "generate": "wca analyze ../mgt-components/src --format json --outFile temp/web-components.json && node ./scripts/generate.js", + "publish:next": "npm publish --tag next" }, "dependencies": { "@microsoft/mgt": "*", diff --git a/packages/mgt/package.json b/packages/mgt/package.json index 6ae0337466..b0e7155431 100644 --- a/packages/mgt/package.json +++ b/packages/mgt/package.json @@ -35,14 +35,14 @@ "copy:loader": "cpx src/bundle/mgt-loader.js dist/bundle", "copy:wc": "cpx ../../node_modules/@webcomponents/webcomponentsjs/bundles/**/* dist/bundle/wc/bundles && cpx ../../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js dist/bundle/wc", "lint": "tslint -c ../../tslint.json 'src/**/*.ts'", - "prepack": "shx rm -rf *.tgz && npm run build", "postpack": "cpx *.tgz ../../artifacts", "rollup": "rollup -c", "sass": "gulp sass --cwd .", "sass:watch": "gulp watchSass --cwd .", "setLicense": "gulp setLicense --cwd .", "test": "jest", - "test:watch": "jest --watch" + "test:watch": "jest --watch", + "publish:next": "npm publish --tag next" }, "dependencies": { "@microsoft/mgt-element": "*", diff --git a/packages/providers/mgt-msal-provider/package.json b/packages/providers/mgt-msal-provider/package.json index f44c9b5056..5a84f493e2 100644 --- a/packages/providers/mgt-msal-provider/package.json +++ b/packages/providers/mgt-msal-provider/package.json @@ -36,8 +36,8 @@ "compile:watch": "tsc -w", "lint": "tslint -c ../../../tslint.json 'src/**/*.ts'", "setLicense": "gulp setLicense --cwd .", - "prepack": "shx rm -rf *.tgz && npm run build", - "postpack": "cpx *.tgz ../../../artifacts" + "postpack": "cpx *.tgz ../../../artifacts", + "publish:next": "npm publish --tag next" }, "dependencies": { "@microsoft/mgt-element": "*", diff --git a/packages/providers/mgt-proxy-provider/package.json b/packages/providers/mgt-proxy-provider/package.json index 7cf4f24f19..247b78a0b4 100644 --- a/packages/providers/mgt-proxy-provider/package.json +++ b/packages/providers/mgt-proxy-provider/package.json @@ -35,8 +35,8 @@ "compile:watch": "tsc -w", "lint": "tslint -c ../../../tslint.json 'src/**/*.ts'", "setLicense": "gulp setLicense --cwd .", - "prepack": "shx rm -rf *.tgz && npm run build", - "postpack": "cpx *.tgz ../../../artifacts" + "postpack": "cpx *.tgz ../../../artifacts", + "publish:next": "npm publish --tag next" }, "dependencies": { "@microsoft/mgt-element": "*" diff --git a/packages/providers/mgt-sharepoint-provider/package.json b/packages/providers/mgt-sharepoint-provider/package.json index 1d54d3d75e..8e6048afa2 100644 --- a/packages/providers/mgt-sharepoint-provider/package.json +++ b/packages/providers/mgt-sharepoint-provider/package.json @@ -37,8 +37,8 @@ "compile:watch": "tsc -w", "lint": "tslint -c ../../../tslint.json 'src/**/*.ts'", "setLicense": "gulp setLicense --cwd .", - "prepack": "shx rm -rf *.tgz && npm run build", - "postpack": "cpx *.tgz ../../../artifacts" + "postpack": "cpx *.tgz ../../../artifacts", + "publish:next": "npm publish --tag next" }, "dependencies": { "@microsoft/mgt-element": "*" diff --git a/packages/providers/mgt-teams-provider/package.json b/packages/providers/mgt-teams-provider/package.json index ae4ce82d1c..d17b2ebdc1 100644 --- a/packages/providers/mgt-teams-provider/package.json +++ b/packages/providers/mgt-teams-provider/package.json @@ -38,8 +38,8 @@ "compile:watch": "tsc -w", "lint": "tslint -c ../../../tslint.json 'src/**/*.ts'", "setLicense": "gulp setLicense --cwd .", - "prepack": "shx rm -rf *.tgz && npm run build", - "postpack": "cpx *.tgz ../../../artifacts" + "postpack": "cpx *.tgz ../../../artifacts", + "publish:next": "npm publish --tag next" }, "dependencies": { "@microsoft/mgt-element": "*",