Skip to content

Commit

Permalink
chore: wrap file/folder paths in package.json files in double quotes (#…
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
musale and Mnickii authored Jun 12, 2024
1 parent 6a93c6e commit 2be7fae
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 25 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@
"scripts": {
"init": "yarn && yarn build",
"analyze": "custom-elements-manifest analyze --litelement --globs \"./packages/*/src/**/*.ts\"",
"build": "npm run prettier:check && npm run clean && lerna run build --scope '@microsoft/*'",
"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'",
"build:compile": "npm run prettier:check && npm run clean && lerna run build:compile --scope '@microsoft/*'",
"build": "npm run prettier:check && npm run clean && lerna run build --scope \"@microsoft/*\"",
"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\"",
"build:compile": "npm run prettier:check && npm run clean && lerna run build:compile --scope \"@microsoft/*\"",
"build:mgt": "cd ./packages/mgt && npm run build",
"build:mgt-element": "cd ./packages/mgt-element && npm run build",
"build:mgt-components": "cd ./packages/mgt-components && npm run build",
"build:mgt-react": "lerna run build --scope @microsoft/mgt-react",
"build:react-contoso": "lerna run build --scope react-contoso",
"bundle": "cd ./packages/mgt && npm run bundle",
"clean": "lerna run --parallel --stream --scope '@microsoft/*' clean",
"lint:eslint": "eslint -c .eslintrc.js --quiet 'packages/*/src/**/*.ts'",
"lint:eslint:fix": "eslint -c .eslintrc.js --quiet 'packages/*/src/**/*.ts' --fix",
"lint:eslint:loud": "eslint -c .eslintrc.js 'packages/*/src/**/*.ts'",
"lint:styles": "stylelint './packages/mgt-components/**/*.{css,scss}'",
"lint:styles:fix": "stylelint './packages/mgt-components/**/*.{css,scss}' --fix",
"clean": "lerna run --parallel --stream --scope \"@microsoft/*\" clean",
"lint:eslint": "eslint -c .eslintrc.js --quiet \"packages/*/src/**/*.ts\"",
"lint:eslint:fix": "eslint -c .eslintrc.js --quiet \"packages/*/src/**/*.ts\" --fix",
"lint:eslint:loud": "eslint -c .eslintrc.js \"packages/*/src/**/*.ts\"",
"lint:styles": "stylelint \"./packages/mgt-components/**/*.{css,scss}\"",
"lint:styles:fix": "stylelint \"./packages/mgt-components/**/*.{css,scss}\" --fix",
"lint:fix": "npm-run-all lint:eslint:fix lint:styles:fix",
"lint": "npm run lint:eslint && npm run lint:styles",
"pack": "shx rm -rf 'artifacts/*.tgz' && lerna exec --stream --scope '@microsoft/*' -- npm pack",
"pack": "shx rm -rf \"artifacts/*.tgz\" && lerna exec --stream --scope \"@microsoft/*\" -- npm pack",
"sass": "lerna run sass --scope @microsoft/mgt-components",
"sass:test": "lerna run sass:test --scope @microsoft/mgt-components",
"sass:watch": "lerna run sass:watch --scope @microsoft/mgt-components",
Expand All @@ -38,7 +38,7 @@
"start": "npm-run-all prettier:check watch:serve",
"start:storybook": "npm-run-all storybook:dev storybook:watch",
"start:https": "npm-run-all prettier:check build:esm watch:serve:https",
"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 ",
"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 ",
"watch:serve": "npm-run-all --parallel watch serve",
"watch:serve:https": "npm-run-all -parallel watch serve:https",
"watch:components": "lerna run --parallel build:watch --scope @microsoft/mgt-components --include-dependents",
Expand All @@ -54,8 +54,8 @@
"storybook:watch": "npm-run-all --parallel watch storybook:bundle:watch storybook",
"storybook:bundle": "rollup -c ./.storybook/rollup.config.mjs",
"storybook:bundle:watch": "rollup -c ./.storybook/rollup.config.mjs --watch",
"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' ../",
"csp": "node ./.storybook/post-process-index-file.js 'Microsoft Graph Toolkit Playground' ../",
"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\" ../",
"csp": "node ./.storybook/post-process-index-file.js \"Microsoft Graph Toolkit Playground\" ../",
"setLicense": "npm run lint:fix",
"test": "npm run wtr:coverage",
"version:tsc": "tsc -v",
Expand Down
4 changes: 2 additions & 2 deletions packages/mgt-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"build": "npm-run-all clean build:compile",
"build:compile": "npm-run-all sass compile",
"build:watch": "npm-run-all -p sass:watch compile:watch",
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo && shx rm 'src/**/*-css.ts' || shx true",
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo && shx rm \"src/**/*-css.ts\" || shx true",
"compile": "tsc -b",
"compile:watch": "tsc -w",
"lint": "eslint -c ../../.eslintrc.js 'src/**/*.ts'",
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
"postpack": "cpx *.tgz ../../artifacts",
"sass": "node ./scripts/compileSass.js",
"sass:watch": "nodemon -e scss -x npm run sass"
Expand Down
2 changes: 1 addition & 1 deletion packages/mgt-element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
"compile": "tsc -b",
"compile:watch": "tsc -w",
"lint": "eslint -c ../../.eslintrc.js 'src/**/*.ts'",
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
"postpack": "cpx *.tgz ../../artifacts",
"setVersion": "node ./scripts/setVersion.js"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/mgt-spfx-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
"compile": "tsc -b",
"compile:watch": "tsc -w",
"lint": "eslint -c ../../.eslintrc.js 'src/**/*.ts'",
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
"postpack": "cpx *.tgz ../../artifacts"
},
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/mgt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
"compile": "tsc -b",
"compile:watch": "tsc -w",
"lint": "eslint -c ../../.eslintrc.js 'src/**/*.ts'",
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
"postpack": "cpx *.tgz ../../artifacts",
"rollup": "rollup -c"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/providers/mgt-electron-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"compile": "tsc -p ./tsconfig.provider.json && tsc -p ./tsconfig.authenticator.json",
"compile:watch": "tsc -w -p ./tsconfig.provider.json && tsc -w -p ./tsconfig.authenticator.json",
"lint": "npm run lint:auth && npm run lint:provider",
"lint:auth": "eslint -c .eslintrc.auth.js 'src/Authenticator/**/*.ts'",
"lint:provider": "eslint -c .eslintrc.provider.js 'src/Provider/**/*.ts'",
"lint:auth": "eslint -c .eslintrc.auth.js \"src/Authenticator/**/*.ts\"",
"lint:provider": "eslint -c .eslintrc.provider.js \"src/Provider/**/*.ts\"",
"postpack": "cpx *.tgz ../../../artifacts"
},
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/providers/mgt-mock-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
"compile": "tsc -b",
"compile:watch": "tsc -w",
"lint": "eslint -c ../../../.eslintrc.js 'src/**/*.ts'",
"lint": "eslint -c ../../../.eslintrc.js \"src/**/*.ts\"",
"postpack": "cpx *.tgz ../../../artifacts"
},
"sideEffects": [
Expand Down
2 changes: 1 addition & 1 deletion packages/providers/mgt-msal2-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
"compile": "tsc -b",
"compile:watch": "tsc -w",
"lint": "eslint -c ../../../.eslintrc.js 'src/**/*.ts'",
"lint": "eslint -c ../../../.eslintrc.js \"src/**/*.ts\"",
"postpack": "cpx *.tgz ../../../artifacts"
},
"sideEffects": [
Expand Down
2 changes: 1 addition & 1 deletion packages/providers/mgt-proxy-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
"compile": "tsc -b",
"compile:watch": "tsc -w",
"lint": "eslint -c ../../../.eslintrc.js 'src/**/*.ts'",
"lint": "eslint -c ../../../.eslintrc.js \"src/**/*.ts\"",
"postpack": "cpx *.tgz ../../../artifacts"
},
"sideEffects": [
Expand Down
2 changes: 1 addition & 1 deletion packages/providers/mgt-sharepoint-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
"compile": "tsc -b",
"compile:watch": "tsc -w",
"lint": "eslint -c ../../../.eslintrc.js 'src/**/*.ts'",
"lint": "eslint -c ../../../.eslintrc.js \"src/**/*.ts\"",
"postpack": "cpx *.tgz ../../../artifacts"
},
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/providers/mgt-teamsfx-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"clean": "shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo",
"compile": "tsc -b",
"compile:watch": "tsc -w",
"lint": "eslint -c ../../../.eslintrc.js 'src/**/*.ts'",
"lint": "eslint -c ../../../.eslintrc.js \"src/**/*.ts\"",
"postpack": "cpx *.tgz ../../../artifacts"
},
"sideEffects": false,
Expand Down

0 comments on commit 2be7fae

Please sign in to comment.