Skip to content

Commit 37c647d

Browse files
authored
Move postbuild.js
1 parent 0ce7ad2 commit 37c647d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"test": "jest --coverage",
1616
"clean": "rimraf lib",
17-
"build": "npm run clean && tsc -p tsconfig-esm.json && tsc -p tsconfig-cjs.json && node postbuild.js",
17+
"build": "npm run clean && tsc -p tsconfig-esm.json && tsc -p tsconfig-cjs.json && node scripts/postbuild.js",
1818
"prepack": "npm run build",
1919
"prettier": "prettier --write src/**/*.{ts,js}"
2020
},

postbuild.js renamed to scripts/postbuild.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ const fs = require('fs');
66
const path = require('path');
77

88
fs.writeFileSync(
9-
path.join(__dirname, 'lib/cjs/package.json'),
9+
path.join(__dirname, '../lib/cjs/package.json'),
1010
JSON.stringify({ type: 'commonjs' }),
1111
'utf8'
1212
);
1313

1414
fs.writeFileSync(
15-
path.join(__dirname, 'lib/esm/package.json'),
15+
path.join(__dirname, '../lib/esm/package.json'),
1616
JSON.stringify({ type: 'module' }),
1717
'utf8'
1818
);

0 commit comments

Comments
 (0)