Skip to content

Commit ce5ce9e

Browse files
committed
refactor(build): Move build to scripts
1 parent fbea639 commit ce5ce9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"types": "dist/types/index.d.ts",
2020
"scripts": {
2121
"build": "npm run build:types && npm run build:bundles",
22-
"build:bundles": "node ./esbuild.config.mjs",
22+
"build:bundles": "node ./scripts/esbuild.config.mjs",
2323
"build:types": "tsc -p tsconfig.build.json",
2424
"check:types": "tsc -p tsconfig.json",
2525
"format:check": "prettier --check \"{**/*,*}.{js,ts}\"",

esbuild.config.mjs scripts/esbuild.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { fileURLToPath } from "url";
77
const nodeTargets = ["node14", "node16", "node18"];
88

99
const __dirname = path.dirname(fileURLToPath(import.meta.url));
10-
const packageJsonPath = path.resolve(__dirname, "package.json");
10+
const packageJsonPath = path.resolve(__dirname, "..", "package.json");
1111

1212
async function getExternals() {
1313
const packageJson = JSON.parse(await readFile(packageJsonPath));

0 commit comments

Comments
 (0)