@sveltejs/adapter-netlify
Advanced tools
Comparing version 1.0.0-next.10 to 1.0.0-next.11
# @sveltejs/adapter-netlify | ||
## 1.0.0-next.11 | ||
### Patch Changes | ||
- c6fde99: Convert to ESM | ||
- Updated dependencies [694f5de] | ||
- Updated dependencies [0befffb] | ||
- Updated dependencies [c6fde99] | ||
- @sveltejs/kit@1.0.0-next.97 | ||
## 1.0.0-next.10 | ||
@@ -4,0 +14,0 @@ |
19
index.js
@@ -1,7 +0,8 @@ | ||
const { existsSync, readFileSync, writeFileSync } = require('fs'); | ||
const { join } = require('path'); | ||
const esbuild = require('esbuild'); | ||
const toml = require('toml'); | ||
import { existsSync, readFileSync, writeFileSync } from 'fs'; | ||
import { join } from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
import esbuild from 'esbuild'; | ||
import toml from 'toml'; | ||
module.exports = function () { | ||
export default function () { | ||
/** @type {import('@sveltejs/kit').Adapter} */ | ||
@@ -17,9 +18,9 @@ const adapter = { | ||
const files = join(__dirname, 'files'); | ||
const files = fileURLToPath(new URL('./files', import.meta.url)); | ||
utils.log.minor('Generating serverless function...'); | ||
utils.copy(join(files, 'entry.js'), '.svelte/netlify/entry.js'); | ||
utils.copy(join(files, 'entry.js'), '.svelte-kit/netlify/entry.js'); | ||
await esbuild.build({ | ||
entryPoints: ['.svelte/netlify/entry.js'], | ||
entryPoints: ['.svelte-kit/netlify/entry.js'], | ||
outfile: join(functions, 'render/index.js'), | ||
@@ -47,3 +48,3 @@ bundle: true, | ||
return adapter; | ||
}; | ||
} | ||
@@ -50,0 +51,0 @@ function validate_config() { |
{ | ||
"name": "@sveltejs/adapter-netlify", | ||
"version": "1.0.0-next.10", | ||
"version": "1.0.0-next.11", | ||
"type": "module", | ||
"exports": { | ||
"import": "./index.js" | ||
}, | ||
"main": "index.js", | ||
@@ -11,3 +15,3 @@ "types": "index.d.ts", | ||
"dependencies": { | ||
"@sveltejs/kit": "1.0.0-next.91", | ||
"@sveltejs/kit": "1.0.0-next.98", | ||
"esbuild": "^0.11.12", | ||
@@ -17,3 +21,3 @@ "toml": "^3.0.0" | ||
"devDependencies": { | ||
"typescript": "^4.2.3" | ||
"typescript": "^4.2.4" | ||
}, | ||
@@ -20,0 +24,0 @@ "scripts": { |
@@ -15,7 +15,8 @@ # adapter-netlify | ||
You can then configure it inside of `svelte.config.cjs`: | ||
You can then configure it inside of `svelte.config.js`: | ||
```js | ||
const adapter = require('@sveltejs/adapter-netlify'); | ||
module.exports = { | ||
import adapter from '@sveltejs/adapter-netlify'; | ||
export default { | ||
kit: { | ||
@@ -22,0 +23,0 @@ adapter: adapter(), // currently the adapter does not take any options |
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
8297
97
42
Yes
+ Added@sveltejs/kit@1.0.0-next.98(transitive)
- Removed@sveltejs/kit@1.0.0-next.91(transitive)
Updated@sveltejs/kit@1.0.0-next.98