Skip to content

Commit

Permalink
🚚 [#724] Move prepare-package.js to bin folder
Browse files Browse the repository at this point in the history
The 'scripts' directory is being removed with the removal of CRA.
  • Loading branch information
sergei-maertens committed Jan 6, 2025
1 parent 1d43c46 commit 6560c7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/prepare-package.js → bin/prepare-package.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
'use strict';

const fs = require('fs');
Expand All @@ -11,5 +12,5 @@ const packageJson = JSON.parse(fs.readFileSync(paths.appPackageJson, 'utf-8'));
// package, we do not use workspaces.
packageJson.private = false;

const stringified = JSON.stringify(packageJson, null, 2) + "\n";
const stringified = JSON.stringify(packageJson, null, 2) + '\n';
fs.writeFileSync(paths.appPackageJson, stringified);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"build": "BUILD_TARGET=umd vite build && BUILD_TARGET=esm vite build",
"test": "TZ=Europe/Amsterdam vitest",
"test:storybook": "test-storybook --coverage",
"prepare-package": "node scripts/prepare-package.js",
"prepare-package": "node bin/prepare-package.js",
"makemessages-en": "formatjs extract 'src/**/*.{js,jsx}' --format scripts/i18n-formatter.js --out-file src/i18n/messages/en.json --id-interpolation-pattern '[sha512:contenthash:base64:6]'",
"makemessages-nl": "formatjs extract 'src/**/*.{js,jsx}' --format scripts/i18n-formatter.js --out-file src/i18n/messages/nl.json --id-interpolation-pattern '[sha512:contenthash:base64:6]'",
"makemessages": "npm run makemessages-nl && npm run makemessages-en",
Expand Down

0 comments on commit 6560c7e

Please sign in to comment.