@sveltejs/adapter-node
Advanced tools
Comparing version 1.0.0-next.92 to 1.0.0-next.93
30
index.js
import { readFileSync, writeFileSync } from 'fs'; | ||
import { fileURLToPath } from 'url'; | ||
import * as esbuild from 'esbuild'; | ||
import { rollup } from 'rollup'; | ||
import { nodeResolve } from '@rollup/plugin-node-resolve'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import json from '@rollup/plugin-json'; | ||
@@ -52,12 +55,19 @@ const files = fileURLToPath(new URL('./files', import.meta.url).href); | ||
await esbuild.build({ | ||
platform: 'node', | ||
sourcemap: 'linked', | ||
target: 'es2022', | ||
entryPoints: [`${tmp}/index.js`, `${tmp}/manifest.js`], | ||
outdir: `${out}/server`, | ||
splitting: true, | ||
// we bundle the Vite output so that deployments only need | ||
// their production dependencies. Anything in devDependencies | ||
// will get included in the bundled code | ||
const bundle = await rollup({ | ||
input: { | ||
index: `${tmp}/index.js`, | ||
manifest: `${tmp}/manifest.js` | ||
}, | ||
external: [...Object.keys(pkg.dependencies || {})], | ||
plugins: [nodeResolve(), commonjs(), json()] | ||
}); | ||
await bundle.write({ | ||
dir: `${out}/server`, | ||
format: 'esm', | ||
bundle: true, | ||
external: [...Object.keys(pkg.dependencies || {})] | ||
sourcemap: true, | ||
chunkFileNames: `chunks/[name]-[hash].js` | ||
}); | ||
@@ -64,0 +74,0 @@ |
{ | ||
"name": "@sveltejs/adapter-node", | ||
"version": "1.0.0-next.92", | ||
"version": "1.0.0-next.93", | ||
"repository": { | ||
@@ -26,4 +26,3 @@ "type": "git", | ||
"devDependencies": { | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@sveltejs/kit": "1.0.0-next.483", | ||
"@sveltejs/kit": "1.0.0-next.491", | ||
"@types/node": "^16.11.36", | ||
@@ -40,3 +39,5 @@ "c8": "^7.11.3", | ||
"dependencies": { | ||
"esbuild": "^0.15.7" | ||
"@rollup/plugin-commonjs": "^22.0.1", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^14.1.0" | ||
}, | ||
@@ -43,0 +44,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
783216
10
17863
3
+ Added@rollup/plugin-json@^4.1.0
+ Added@rollup/plugin-commonjs@22.0.2(transitive)
+ Added@rollup/plugin-json@4.1.0(transitive)
+ Added@rollup/plugin-node-resolve@14.1.0(transitive)
+ Added@rollup/pluginutils@3.1.0(transitive)
+ Added@types/estree@0.0.39(transitive)
+ Added@types/node@22.9.0(transitive)
+ Added@types/resolve@1.17.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbuiltin-modules@3.3.0(transitive)
+ Addedcommondir@1.0.1(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddeepmerge@4.3.1(transitive)
+ Addedestree-walker@1.0.12.0.2(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-builtin-module@3.2.1(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedis-module@1.0.0(transitive)
+ Addedis-reference@1.2.1(transitive)
+ Addedmagic-string@0.25.9(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedrollup@2.79.2(transitive)
+ Addedsourcemap-codec@1.4.8(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedesbuild@^0.15.7
- Removed@esbuild/android-arm@0.15.18(transitive)
- Removed@esbuild/linux-loong64@0.15.18(transitive)
- Removedesbuild@0.15.18(transitive)
- Removedesbuild-android-64@0.15.18(transitive)
- Removedesbuild-android-arm64@0.15.18(transitive)
- Removedesbuild-darwin-64@0.15.18(transitive)
- Removedesbuild-darwin-arm64@0.15.18(transitive)
- Removedesbuild-freebsd-64@0.15.18(transitive)
- Removedesbuild-freebsd-arm64@0.15.18(transitive)
- Removedesbuild-linux-32@0.15.18(transitive)
- Removedesbuild-linux-64@0.15.18(transitive)
- Removedesbuild-linux-arm@0.15.18(transitive)
- Removedesbuild-linux-arm64@0.15.18(transitive)
- Removedesbuild-linux-mips64le@0.15.18(transitive)
- Removedesbuild-linux-ppc64le@0.15.18(transitive)
- Removedesbuild-linux-riscv64@0.15.18(transitive)
- Removedesbuild-linux-s390x@0.15.18(transitive)
- Removedesbuild-netbsd-64@0.15.18(transitive)
- Removedesbuild-openbsd-64@0.15.18(transitive)
- Removedesbuild-sunos-64@0.15.18(transitive)
- Removedesbuild-windows-32@0.15.18(transitive)
- Removedesbuild-windows-64@0.15.18(transitive)
- Removedesbuild-windows-arm64@0.15.18(transitive)