Skip to content

Commit e7c3b08

Browse files
committed
Fixed setVersion
1 parent f9bded3 commit e7c3b08

File tree

10 files changed

+11
-20
lines changed

10 files changed

+11
-20
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
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",
40-
"publish:next": "lerna run publish:next --scope @microsoft/*"
39+
"storybook:bundle": "rollup -c ./.storybook/rollup.config.js"
4140
},
4241
"storybook-deployer": {
4342
"gitUsername": "@microsoft/mgt",

packages/mgt-components/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
"postpack": "cpx *.tgz ../../artifacts",
3535
"sass": "gulp sass --cwd .",
3636
"sass:watch": "gulp watchSass --cwd .",
37-
"setLicense": "gulp setLicense --cwd .",
38-
"publish:next": "npm publish --tag next"
37+
"setLicense": "gulp setLicense --cwd ."
3938
},
4039
"dependencies": {
4140
"@microsoft/microsoft-graph-types": "^1.22.0",

packages/mgt-element/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"lint": "tslint -c ../../tslint.json 'src/**/*.ts'",
3030
"setVersion": "gulp setVersion --cwd .",
3131
"setLicense": "gulp setLicense --cwd .",
32-
"postpack": "cpx *.tgz ../../artifacts",
33-
"publish:next": "npm publish --tag next"
32+
"postpack": "cpx *.tgz ../../artifacts"
3433
},
3534
"dependencies": {
3635
"@microsoft/microsoft-graph-client": "^2.0.0",

packages/mgt-react/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"build": "npm run clean && npm run generate && tsc",
2929
"clean": "node ./scripts/clean.js",
3030
"postpack": "cpx *.tgz ../../artifacts",
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"
31+
"generate": "wca analyze ../mgt-components/src --format json --outFile temp/web-components.json && node ./scripts/generate.js"
3332
},
3433
"dependencies": {
3534
"@microsoft/mgt": "*",

packages/mgt/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
"sass:watch": "gulp watchSass --cwd .",
4242
"setLicense": "gulp setLicense --cwd .",
4343
"test": "jest",
44-
"test:watch": "jest --watch",
45-
"publish:next": "npm publish --tag next"
44+
"test:watch": "jest --watch"
4645
},
4746
"dependencies": {
4847
"@microsoft/mgt-element": "*",

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
"compile:watch": "tsc -w",
3737
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
3838
"setLicense": "gulp setLicense --cwd .",
39-
"postpack": "cpx *.tgz ../../../artifacts",
40-
"publish:next": "npm publish --tag next"
39+
"postpack": "cpx *.tgz ../../../artifacts"
4140
},
4241
"dependencies": {
4342
"@microsoft/mgt-element": "*",

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
"compile:watch": "tsc -w",
3636
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
3737
"setLicense": "gulp setLicense --cwd .",
38-
"postpack": "cpx *.tgz ../../../artifacts",
39-
"publish:next": "npm publish --tag next"
38+
"postpack": "cpx *.tgz ../../../artifacts"
4039
},
4140
"dependencies": {
4241
"@microsoft/mgt-element": "*"

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
"compile:watch": "tsc -w",
3838
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
3939
"setLicense": "gulp setLicense --cwd .",
40-
"postpack": "cpx *.tgz ../../../artifacts",
41-
"publish:next": "npm publish --tag next"
40+
"postpack": "cpx *.tgz ../../../artifacts"
4241
},
4342
"dependencies": {
4443
"@microsoft/mgt-element": "*"

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
"compile:watch": "tsc -w",
3939
"lint": "tslint -c ../../../tslint.json 'src/**/*.ts'",
4040
"setLicense": "gulp setLicense --cwd .",
41-
"postpack": "cpx *.tgz ../../../artifacts",
42-
"publish:next": "npm publish --tag next"
41+
"postpack": "cpx *.tgz ../../../artifacts"
4342
},
4443
"dependencies": {
4544
"@microsoft/mgt-element": "*",

scripts/setVersion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ function updateMgtDependencyVersion(packages, version) {
2828
for (let package of packages) {
2929
const data = fs.readFileSync(package, 'utf8');
3030

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

3434
fs.writeFileSync(package, result, 'utf8');
3535
}

0 commit comments

Comments
 (0)