Skip to content

Commit 74ac315

Browse files
committed
package.json: update scripts to use "npm run"
All scripts should use "npm run" instead of "yarn".
1 parent 84c88a1 commit 74ac315

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@
55
"ng": "ng",
66
"config:watch": "nodemon",
77
"test:rest": "ts-node --project ./tsconfig.ts-node.json scripts/test-rest.ts",
8-
"start": "yarn run start:prod",
9-
"start:dev": "nodemon --exec \"cross-env NODE_ENV=development yarn run serve\"",
10-
"start:prod": "yarn run build:prod && cross-env NODE_ENV=production yarn run serve:ssr",
11-
"start:mirador:prod": "yarn run build:mirador && yarn run start:prod",
12-
"preserve": "yarn base-href",
8+
"start": "npm run start:prod",
9+
"start:dev": "nodemon --exec \"cross-env NODE_ENV=development npm run serve\"",
10+
"start:prod": "npm run build:prod && cross-env NODE_ENV=production npm run serve:ssr",
11+
"start:mirador:prod": "npm run build:mirador && npm run start:prod",
12+
"preserve": "npm run base-href",
1313
"serve": "ts-node --project ./tsconfig.ts-node.json scripts/serve.ts",
1414
"serve:ssr": "node dist/server/main",
1515
"analyze": "webpack-bundle-analyzer dist/browser/stats.json",
1616
"build": "ng build --configuration development",
1717
"build:stats": "ng build --stats-json",
18-
"build:prod": "cross-env NODE_ENV=production yarn run build:ssr",
18+
"build:prod": "cross-env NODE_ENV=production npm run build:ssr",
1919
"build:ssr": "ng build --configuration production && ng run dspace-angular:server:production",
2020
"build:lint": "rimraf 'lint/dist/**/*.js' 'lint/dist/**/*.js.map' && tsc -b lint/tsconfig.json",
2121
"test": "ng test --source-map=true --watch=false --configuration test",
2222
"test:watch": "nodemon --exec \"ng test --source-map=true --watch=true --configuration test\"",
2323
"test:headless": "ng test --source-map=true --watch=false --configuration test --browsers=ChromeHeadless --code-coverage",
24-
"test:lint": "yarn build:lint && yarn test:lint:nobuild",
24+
"test:lint": "npm run build:lint && npm run test:lint:nobuild",
2525
"test:lint:nobuild": "jasmine --config=lint/jasmine.json",
26-
"lint": "yarn build:lint && yarn lint:nobuild",
26+
"lint": "npm run build:lint && npm run lint:nobuild",
2727
"lint:nobuild": "ng lint",
28-
"lint-fix": "yarn build:lint && ng lint --fix=true",
28+
"lint-fix": "npm run build:lint && ng lint --fix=true",
2929
"docs:lint": "ts-node --project ./lint/tsconfig.json ./lint/generate-docs.ts",
3030
"e2e": "cross-env NODE_ENV=production ng e2e",
3131
"clean:dev:config": "rimraf src/assets/config.json",
@@ -36,8 +36,8 @@
3636
"clean:json": "rimraf *.records.json",
3737
"clean:node": "rimraf node_modules",
3838
"clean:cli": "rimraf .angular/cache",
39-
"clean:prod": "yarn run clean:dist && yarn run clean:log && yarn run clean:doc && yarn run clean:coverage && yarn run clean:json",
40-
"clean": "yarn run clean:prod && yarn run clean:dev:config && yarn run clean:cli && yarn run clean:node",
39+
"clean:prod": "npm run clean:dist && npm run clean:log && npm run clean:doc && npm run clean:coverage && npm run clean:json",
40+
"clean": "npm run clean:prod && npm run clean:dev:config && npm run clean:cli && npm run clean:node",
4141
"sync-i18n": "ts-node --project ./tsconfig.ts-node.json scripts/sync-i18n-files.ts",
4242
"build:mirador": "webpack --config webpack/webpack.mirador.config.ts",
4343
"merge-i18n": "ts-node --project ./tsconfig.ts-node.json scripts/merge-i18n-files.ts",
@@ -46,7 +46,7 @@
4646
"env:yaml": "ts-node --project ./tsconfig.ts-node.json scripts/env-to-yaml.ts",
4747
"base-href": "ts-node --project ./tsconfig.ts-node.json scripts/base-href.ts",
4848
"check-circ-deps": "npx madge --exclude '(bitstream|bundle|collection|config-submission-form|eperson|item|version)\\.model\\.ts$' --circular --extensions ts ./",
49-
"postinstall": "yarn build:lint || echo 'Skipped DSpace ESLint plugins.'"
49+
"postinstall": "npm run build:lint || echo 'Skipped DSpace ESLint plugins.'"
5050
},
5151
"browser": {
5252
"fs": false,

0 commit comments

Comments
 (0)