Commits

Yury Bondarenko authored 728b561bf4d
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.
No tags

package.json

Modified
39 39 "clean:prod": "yarn run clean:dist && yarn run clean:log && yarn run clean:doc && yarn run clean:coverage && yarn run clean:json",
40 40 "clean": "yarn run clean:prod && yarn run clean:dev:config && yarn run clean:cli && yarn run clean:node",
41 41 "sync-i18n": "ts-node --project ./tsconfig.ts-node.json scripts/sync-i18n-files.ts",
42 42 "build:mirador": "webpack --config webpack/webpack.mirador.config.ts",
43 43 "merge-i18n": "ts-node --project ./tsconfig.ts-node.json scripts/merge-i18n-files.ts",
44 44 "cypress:open": "cypress open",
45 45 "cypress:run": "cypress run",
46 46 "env:yaml": "ts-node --project ./tsconfig.ts-node.json scripts/env-to-yaml.ts",
47 47 "base-href": "ts-node --project ./tsconfig.ts-node.json scripts/base-href.ts",
48 48 "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.'"
50 50 },
51 51 "browser": {
52 52 "fs": false,
53 53 "path": false,
54 54 "http": false,
55 55 "https": false
56 56 },
57 57 "private": true,
58 58 "resolutions": {
59 59 "minimist": "^1.2.5",

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut