Skip to content

Commit 728b561

Browse files
committed
Optional postinstall script should be cross-platform
There is no cross-platform way to check if the file/directory exists that doesn't depend on adding another NodeJS dependency. This "skip if failed" approach is more noisy, but it should work everywhere.
1 parent 80be4fc commit 728b561

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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": "if [ -f lint/tsconfig.json ]; then yarn build:lint ; fi"
49+
"postinstall": "yarn build:lint || echo 'Skipped DSpace ESLint plugins.'"
5050
},
5151
"browser": {
5252
"fs": false,

0 commit comments

Comments
 (0)