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

@sveltejs/adapter-static

Package Overview
Dependencies
Maintainers
3
Versions
84
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 1.0.0-next.0 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"

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