diff options
author | 2022-03-08 15:20:04 -0800 | |
---|---|---|
committer | 2022-03-08 15:20:04 -0800 | |
commit | 240d88aefe66c7d73b9c713c5da42ae789c011ce (patch) | |
tree | b57f527cf32477c54be9a323a2159adb2aaad138 /scripts/cmd/build.js | |
parent | 0ae96bb7491a60eb2032bab23377ca54951a67a7 (diff) | |
download | astro-240d88aefe66c7d73b9c713c5da42ae789c011ce.tar.gz astro-240d88aefe66c7d73b9c713c5da42ae789c011ce.tar.zst astro-240d88aefe66c7d73b9c713c5da42ae789c011ce.zip |
fix format (#2736)
Diffstat (limited to 'scripts/cmd/build.js')
-rw-r--r-- | scripts/cmd/build.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cmd/build.js b/scripts/cmd/build.js index 02c0f5798..3a8f1d5b0 100644 --- a/scripts/cmd/build.js +++ b/scripts/cmd/build.js @@ -29,7 +29,7 @@ export default async function build(...args) { let entryPoints = [].concat(...(await Promise.all(patterns.map((pattern) => glob(pattern, { filesOnly: true, absolute: true }))))); const { type = 'module', version, dependencies = {} } = await fs.readFile('./package.json').then((res) => JSON.parse(res.toString())); - // expose PACKAGE_VERSION on process.env for CLI utils + // expose PACKAGE_VERSION on process.env for CLI utils config.define = { 'process.env.PACKAGE_VERSION': JSON.stringify(version) }; const format = type === 'module' ? 'esm' : 'cjs'; const outdir = 'dist'; |