Skip to content

Commit

Permalink
chore: add babel.config.js files to every package (#81)
Browse files Browse the repository at this point in the history
and update `build` script in `package.json`
  • Loading branch information
lumirlumir authored Nov 6, 2024
1 parent 6bfed06 commit 8711852
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
presets: ['@babel/preset-env'],
ignore: ['**/*.test.js', '**/*.spec.js'],
minified: true,
comments: false,
};
3 changes: 3 additions & 0 deletions packages/clang-format-git-python/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: '../../babel.config.js',
};
2 changes: 1 addition & 1 deletion packages/clang-format-git-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"scripts": {
"postinstall": "test -d src && npm run build || npm run chmod",
"prepublishOnly": "npm run build",
"build": "npx babel src -d build --ignore **/*.test.js && npx tsc && cp -r src/script build && cp ../../LICENSE ../../README.md .",
"build": "npx babel src -d build && npx tsc && cp -r src/script build && cp ../../LICENSE ../../README.md .",
"postbuild": "npm run chmod",
"test": "node --test",
"chmod": "find ./src/script ./build/script -type f -exec chmod 755 {} + || true"
Expand Down
3 changes: 3 additions & 0 deletions packages/clang-format-node/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: '../../babel.config.js',
};
2 changes: 1 addition & 1 deletion packages/clang-format-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"scripts": {
"postinstall": "test -d src && npm run build || npm run chmod",
"prepublishOnly": "npm run build",
"build": "npx babel src -d build --ignore **/*.test.js && npx tsc && cp -r src/bin build && cp ../../LICENSE ../../README.md .",
"build": "npx babel src -d build && npx tsc && cp -r src/bin build && cp ../../LICENSE ../../README.md .",
"postbuild": "npm run chmod",
"test": "node --test",
"chmod": "find ./src/bin ./build/bin -type f -exec chmod 755 {} + || true"
Expand Down

0 comments on commit 8711852

Please sign in to comment.