@sveltejs/adapter-static
Advanced tools
Comparing version 1.0.0-next.0 to 1.0.0-next.1
# @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 | ||
}); | ||
}; |
{ | ||
"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" |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3456
9