Skip to content

Commit

Permalink
Fixed setVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
nmetulev committed Dec 3, 2020
1 parent f9bded3 commit e7c3b08
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 20 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
"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",
"publish:next": "lerna run publish:next --scope @microsoft/*"
"storybook:bundle": "rollup -c ./.storybook/rollup.config.js"
},
"storybook-deployer": {
"gitUsername": "@microsoft/mgt",
Expand Down
3 changes: 1 addition & 2 deletions packages/mgt-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
"postpack": "cpx *.tgz ../../artifacts",
"sass": "gulp sass --cwd .",
"sass:watch": "gulp watchSass --cwd .",
"setLicense": "gulp setLicense --cwd .",
"publish:next": "npm publish --tag next"
"setLicense": "gulp setLicense --cwd ."
},
"dependencies": {
"@microsoft/microsoft-graph-types": "^1.22.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/mgt-element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
"lint": "tslint -c ../../tslint.json 'src/**/*.ts'",
"setVersion": "gulp setVersion --cwd .",
"setLicense": "gulp setLicense --cwd .",
"postpack": "cpx *.tgz ../../artifacts",
"publish:next": "npm publish --tag next"
"postpack": "cpx *.tgz ../../artifacts"
},
"dependencies": {
"@microsoft/microsoft-graph-client": "^2.0.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/mgt-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"build": "npm run clean && npm run generate && tsc",
"clean": "node ./scripts/clean.js",
"postpack": "cpx *.tgz ../../artifacts",
"generate": "wca analyze ../mgt-components/src --format json --outFile temp/web-components.json && node ./scripts/generate.js",
"publish:next": "npm publish --tag next"
"generate": "wca analyze ../mgt-components/src --format json --outFile temp/web-components.json && node ./scripts/generate.js"
},
"dependencies": {
"@microsoft/mgt": "*",
Expand Down
3 changes: 1 addition & 2 deletions packages/mgt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
"sass:watch": "gulp watchSass --cwd .",
"setLicense": "gulp setLicense --cwd .",
"test": "jest",
"test:watch": "jest --watch",
"publish:next": "npm publish --tag next"
"test:watch": "jest --watch"
},
"dependencies": {
"@microsoft/mgt-element": "*",
Expand Down
3 changes: 1 addition & 2 deletions packages/providers/mgt-msal-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
"compile:watch": "tsc -w",
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
"setLicense": "gulp setLicense --cwd .",
"postpack": "cpx *.tgz ../../../artifacts",
"publish:next": "npm publish --tag next"
"postpack": "cpx *.tgz ../../../artifacts"
},
"dependencies": {
"@microsoft/mgt-element": "*",
Expand Down
3 changes: 1 addition & 2 deletions packages/providers/mgt-proxy-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
"compile:watch": "tsc -w",
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
"setLicense": "gulp setLicense --cwd .",
"postpack": "cpx *.tgz ../../../artifacts",
"publish:next": "npm publish --tag next"
"postpack": "cpx *.tgz ../../../artifacts"
},
"dependencies": {
"@microsoft/mgt-element": "*"
Expand Down
3 changes: 1 addition & 2 deletions packages/providers/mgt-sharepoint-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
"compile:watch": "tsc -w",
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
"setLicense": "gulp setLicense --cwd .",
"postpack": "cpx *.tgz ../../../artifacts",
"publish:next": "npm publish --tag next"
"postpack": "cpx *.tgz ../../../artifacts"
},
"dependencies": {
"@microsoft/mgt-element": "*"
Expand Down
3 changes: 1 addition & 2 deletions packages/providers/mgt-teams-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
"compile:watch": "tsc -w",
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
"setLicense": "gulp setLicense --cwd .",
"postpack": "cpx *.tgz ../../../artifacts",
"publish:next": "npm publish --tag next"
"postpack": "cpx *.tgz ../../../artifacts"
},
"dependencies": {
"@microsoft/mgt-element": "*",
Expand Down
4 changes: 2 additions & 2 deletions scripts/setVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function updateMgtDependencyVersion(packages, version) {
for (let package of packages) {
const data = fs.readFileSync(package, 'utf8');

var result = data.replace(/"(@microsoft\/mgt.*)": "(\*)",/g, `"$1": "${version}",`);
result = result.replace(/"version": "(.*)",/g, `"version": "${version}",`);
var result = data.replace(/"(@microsoft\/mgt.*)": "(\*)"/g, `"$1": "${version}"`);
result = result.replace(/"version": "(.*)"/g, `"version": "${version}"`);

fs.writeFileSync(package, result, 'utf8');
}
Expand Down

0 comments on commit e7c3b08

Please sign in to comment.