Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sveltejs/adapter-node

Package Overview
Dependencies
Maintainers
4
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/adapter-node - npm Package Compare versions

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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc