Skip to content

Commit 2be7fae

Browse files
musaleMnickii
andauthored
chore: wrap file/folder paths in package.json files in double quotes (#3205)
This is to ensure that the paths are found in Windows and the commands run as expected Signed-off-by: Musale Martin <[email protected]> Co-authored-by: Nickii Miaro <[email protected]>
1 parent 6a93c6e commit 2be7fae

File tree

11 files changed

+25
-25
lines changed

11 files changed

+25
-25
lines changed

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212
"scripts": {
1313
"init": "yarn && yarn build",
1414
"analyze": "custom-elements-manifest analyze --litelement --globs \"./packages/*/src/**/*.ts\"",
15-
"build": "npm run prettier:check && npm run clean && lerna run build --scope '@microsoft/*'",
16-
"build:dev": "npm run prettier:check && lerna run build --scope '@microsoft/*' --ignore '@microsoft/mgt' --ignore '@microsoft/mgt-spf*' --ignore '@microsoft/mgt-sharepoint-provider' --ignore '@microsoft/mgt-electron-provider' --ignore '@microsoft/mgt-teamsfx-provider' --ignore '@microsoft/mgt-proxy-provider'",
17-
"build:compile": "npm run prettier:check && npm run clean && lerna run build:compile --scope '@microsoft/*'",
15+
"build": "npm run prettier:check && npm run clean && lerna run build --scope \"@microsoft/*\"",
16+
"build:dev": "npm run prettier:check && lerna run build --scope \"@microsoft/*\" --ignore \"@microsoft/mgt\" --ignore \"@microsoft/mgt-spf*\" --ignore \"@microsoft/mgt-sharepoint-provider\" --ignore \"@microsoft/mgt-electron-provider\" --ignore \"@microsoft/mgt-teamsfx-provider\" --ignore \"@microsoft/mgt-proxy-provider\"",
17+
"build:compile": "npm run prettier:check && npm run clean && lerna run build:compile --scope \"@microsoft/*\"",
1818
"build:mgt": "cd ./packages/mgt && npm run build",
1919
"build:mgt-element": "cd ./packages/mgt-element && npm run build",
2020
"build:mgt-components": "cd ./packages/mgt-components && npm run build",
2121
"build:mgt-react": "lerna run build --scope @microsoft/mgt-react",
2222
"build:react-contoso": "lerna run build --scope react-contoso",
2323
"bundle": "cd ./packages/mgt && npm run bundle",
24-
"clean": "lerna run --parallel --stream --scope '@microsoft/*' clean",
25-
"lint:eslint": "eslint -c .eslintrc.js --quiet 'packages/*/src/**/*.ts'",
26-
"lint:eslint:fix": "eslint -c .eslintrc.js --quiet 'packages/*/src/**/*.ts' --fix",
27-
"lint:eslint:loud": "eslint -c .eslintrc.js 'packages/*/src/**/*.ts'",
28-
"lint:styles": "stylelint './packages/mgt-components/**/*.{css,scss}'",
29-
"lint:styles:fix": "stylelint './packages/mgt-components/**/*.{css,scss}' --fix",
24+
"clean": "lerna run --parallel --stream --scope \"@microsoft/*\" clean",
25+
"lint:eslint": "eslint -c .eslintrc.js --quiet \"packages/*/src/**/*.ts\"",
26+
"lint:eslint:fix": "eslint -c .eslintrc.js --quiet \"packages/*/src/**/*.ts\" --fix",
27+
"lint:eslint:loud": "eslint -c .eslintrc.js \"packages/*/src/**/*.ts\"",
28+
"lint:styles": "stylelint \"./packages/mgt-components/**/*.{css,scss}\"",
29+
"lint:styles:fix": "stylelint \"./packages/mgt-components/**/*.{css,scss}\" --fix",
3030
"lint:fix": "npm-run-all lint:eslint:fix lint:styles:fix",
3131
"lint": "npm run lint:eslint && npm run lint:styles",
32-
"pack": "shx rm -rf 'artifacts/*.tgz' && lerna exec --stream --scope '@microsoft/*' -- npm pack",
32+
"pack": "shx rm -rf \"artifacts/*.tgz\" && lerna exec --stream --scope \"@microsoft/*\" -- npm pack",
3333
"sass": "lerna run sass --scope @microsoft/mgt-components",
3434
"sass:test": "lerna run sass:test --scope @microsoft/mgt-components",
3535
"sass:watch": "lerna run sass:watch --scope @microsoft/mgt-components",
@@ -38,7 +38,7 @@
3838
"start": "npm-run-all prettier:check watch:serve",
3939
"start:storybook": "npm-run-all storybook:dev storybook:watch",
4040
"start:https": "npm-run-all prettier:check build:esm watch:serve:https",
41-
"watch": "lerna run --parallel --stream --scope '@microsoft/*' --ignore '@microsoft/mgt' --ignore '@microsoft/mgt-spf*' --ignore '@microsoft/mgt-sharepoint-provider' --ignore '@microsoft/mgt-electron-provider' --ignore '@microsoft/mgt-teamsfx-provider' --ignore '@microsoft/mgt-proxy-provider' build:watch ",
41+
"watch": "lerna run --parallel --stream --scope \"@microsoft/*\" --ignore \"@microsoft/mgt\" --ignore \"@microsoft/mgt-spf*\" --ignore \"@microsoft/mgt-sharepoint-provider\" --ignore \"@microsoft/mgt-electron-provider\" --ignore \"@microsoft/mgt-teamsfx-provider\" --ignore \"@microsoft/mgt-proxy-provider\" build:watch ",
4242
"watch:serve": "npm-run-all --parallel watch serve",
4343
"watch:serve:https": "npm-run-all -parallel watch serve:https",
4444
"watch:components": "lerna run --parallel build:watch --scope @microsoft/mgt-components --include-dependents",
@@ -54,8 +54,8 @@
5454
"storybook:watch": "npm-run-all --parallel watch storybook:bundle:watch storybook",
5555
"storybook:bundle": "rollup -c ./.storybook/rollup.config.mjs",
5656
"storybook:bundle:watch": "rollup -c ./.storybook/rollup.config.mjs --watch",
57-
"storybook:build": "npm run storybook:bundle && npm run storybook:dev && storybook build && cpx .storybook/CNAME storybook-static && node ./.storybook/post-process-index-file.js 'Microsoft Graph Toolkit Playground' ../",
58-
"csp": "node ./.storybook/post-process-index-file.js 'Microsoft Graph Toolkit Playground' ../",
57+
"storybook:build": "npm run storybook:bundle && npm run storybook:dev && storybook build && cpx .storybook/CNAME storybook-static && node ./.storybook/post-process-index-file.js \"Microsoft Graph Toolkit Playground\" ../",
58+
"csp": "node ./.storybook/post-process-index-file.js \"Microsoft Graph Toolkit Playground\" ../",
5959
"setLicense": "npm run lint:fix",
6060
"test": "npm run wtr:coverage",
6161
"version:tsc": "tsc -v",

packages/mgt-components/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"build": "npm-run-all clean build:compile",
2828
"build:compile": "npm-run-all sass compile",
2929
"build:watch": "npm-run-all -p sass:watch compile:watch",
30-
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo && shx rm 'src/**/*-css.ts' || shx true",
30+
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo && shx rm \"src/**/*-css.ts\" || shx true",
3131
"compile": "tsc -b",
3232
"compile:watch": "tsc -w",
33-
"lint": "eslint -c ../../.eslintrc.js 'src/**/*.ts'",
33+
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
3434
"postpack": "cpx *.tgz ../../artifacts",
3535
"sass": "node ./scripts/compileSass.js",
3636
"sass:watch": "nodemon -e scss -x npm run sass"

packages/mgt-element/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
2727
"compile": "tsc -b",
2828
"compile:watch": "tsc -w",
29-
"lint": "eslint -c ../../.eslintrc.js 'src/**/*.ts'",
29+
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
3030
"postpack": "cpx *.tgz ../../artifacts",
3131
"setVersion": "node ./scripts/setVersion.js"
3232
},

packages/mgt-spfx-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
2323
"compile": "tsc -b",
2424
"compile:watch": "tsc -w",
25-
"lint": "eslint -c ../../.eslintrc.js 'src/**/*.ts'",
25+
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
2626
"postpack": "cpx *.tgz ../../artifacts"
2727
},
2828
"sideEffects": false,

packages/mgt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
3434
"compile": "tsc -b",
3535
"compile:watch": "tsc -w",
36-
"lint": "eslint -c ../../.eslintrc.js 'src/**/*.ts'",
36+
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
3737
"postpack": "cpx *.tgz ../../artifacts",
3838
"rollup": "rollup -c"
3939
},

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"compile": "tsc -p ./tsconfig.provider.json && tsc -p ./tsconfig.authenticator.json",
3737
"compile:watch": "tsc -w -p ./tsconfig.provider.json && tsc -w -p ./tsconfig.authenticator.json",
3838
"lint": "npm run lint:auth && npm run lint:provider",
39-
"lint:auth": "eslint -c .eslintrc.auth.js 'src/Authenticator/**/*.ts'",
40-
"lint:provider": "eslint -c .eslintrc.provider.js 'src/Provider/**/*.ts'",
39+
"lint:auth": "eslint -c .eslintrc.auth.js \"src/Authenticator/**/*.ts\"",
40+
"lint:provider": "eslint -c .eslintrc.provider.js \"src/Provider/**/*.ts\"",
4141
"postpack": "cpx *.tgz ../../../artifacts"
4242
},
4343
"sideEffects": false,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
3535
"compile": "tsc -b",
3636
"compile:watch": "tsc -w",
37-
"lint": "eslint -c ../../../.eslintrc.js 'src/**/*.ts'",
37+
"lint": "eslint -c ../../../.eslintrc.js \"src/**/*.ts\"",
3838
"postpack": "cpx *.tgz ../../../artifacts"
3939
},
4040
"sideEffects": [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
3636
"compile": "tsc -b",
3737
"compile:watch": "tsc -w",
38-
"lint": "eslint -c ../../../.eslintrc.js 'src/**/*.ts'",
38+
"lint": "eslint -c ../../../.eslintrc.js \"src/**/*.ts\"",
3939
"postpack": "cpx *.tgz ../../../artifacts"
4040
},
4141
"sideEffects": [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
3434
"compile": "tsc -b",
3535
"compile:watch": "tsc -w",
36-
"lint": "eslint -c ../../../.eslintrc.js 'src/**/*.ts'",
36+
"lint": "eslint -c ../../../.eslintrc.js \"src/**/*.ts\"",
3737
"postpack": "cpx *.tgz ../../../artifacts"
3838
},
3939
"sideEffects": [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
3636
"compile": "tsc -b",
3737
"compile:watch": "tsc -w",
38-
"lint": "eslint -c ../../../.eslintrc.js 'src/**/*.ts'",
38+
"lint": "eslint -c ../../../.eslintrc.js \"src/**/*.ts\"",
3939
"postpack": "cpx *.tgz ../../../artifacts"
4040
},
4141
"sideEffects": false,

0 commit comments

Comments
 (0)