diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/cmd/build.js | 2 | ||||
-rw-r--r-- | scripts/package.json | 3 | ||||
-rw-r--r-- | scripts/smoke/cleanup.js | 5 | ||||
-rw-r--r-- | scripts/smoke/index.js | 5 |
4 files changed, 4 insertions, 11 deletions
diff --git a/scripts/cmd/build.js b/scripts/cmd/build.js index 6d1189b71..b516e6b51 100644 --- a/scripts/cmd/build.js +++ b/scripts/cmd/build.js @@ -12,7 +12,7 @@ const defaultConfig = { minify: false, format: 'esm', platform: 'node', - target: 'node16', + target: 'node18', sourcemap: false, sourcesContent: false, }; diff --git a/scripts/package.json b/scripts/package.json index 1bb517750..e6b97f60f 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -8,9 +8,8 @@ "astro-scripts": "./index.js" }, "dependencies": { - "@astrojs/webapi": "workspace:*", "arg": "^5.0.2", - "esbuild": "^0.17.19", + "esbuild": "^0.18.16", "globby": "^12.2.0", "kleur": "^4.1.4", "p-limit": "^4.0.0", diff --git a/scripts/smoke/cleanup.js b/scripts/smoke/cleanup.js index 0d7db79f3..3b03951f9 100644 --- a/scripts/smoke/cleanup.js +++ b/scripts/smoke/cleanup.js @@ -3,11 +3,8 @@ // @ts-check import { execa } from 'execa'; -import { polyfill } from '@astrojs/webapi'; -import { fileURLToPath } from 'node:url'; import { promises as fs } from 'node:fs'; - -polyfill(globalThis, { exclude: 'window document' }); +import { fileURLToPath } from 'node:url'; /* Configuration /* ========================================================================== */ diff --git a/scripts/smoke/index.js b/scripts/smoke/index.js index 9bdaff820..7ab78e286 100644 --- a/scripts/smoke/index.js +++ b/scripts/smoke/index.js @@ -3,11 +3,8 @@ // @ts-check import { execa } from 'execa'; -import { polyfill } from '@astrojs/webapi'; -import { fileURLToPath } from 'node:url'; import { promises as fs } from 'node:fs'; - -polyfill(globalThis, { exclude: 'window document' }); +import { fileURLToPath } from 'node:url'; /** URL directory containing the entire project. */ const rootDir = new URL('../../', import.meta.url); |