You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@sveltejs/adapter-static

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/adapter-static - npm Package Compare versions

Comparing version

to
1.0.0-next.1

6

CHANGELOG.md
# @sveltejs/adapter-static
## 1.0.0-next.1
### Patch Changes
- Support options
## 0.0.17

@@ -4,0 +10,0 @@

10

index.js
'use strict';
module.exports = async function adapter(builder) {
// TODO implement adapter options, allow 'build' to be specified
module.exports = async function adapter(builder, { pages = 'build', assets = 'build' } = {}) {
builder.copy_static_files(assets);
builder.copy_client_files(assets);
builder.copy_static_files('build');
builder.copy_client_files('build');
await builder.prerender({
force: true,
dest: 'build'
dest: pages
});
};

4

package.json
{
"name": "@sveltejs/adapter-static",
"version": "1.0.0-next.0",
"version": "1.0.0-next.1",
"scripts": {
"lint": "eslint --ignore-pattern node_modules/ \"**/*.{ts,js,svelte}\" && npm run check-format",
"lint": "eslint --ignore-path .gitignore \"**/*.{ts,js,svelte}\" && npm run check-format",
"format": "prettier --write . --config ../../.prettierrc --ignore-path .gitignore",

@@ -7,0 +7,0 @@ "check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore"