mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 03:05:12 +00:00
-> v0.22.1
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# sapper changelog
|
||||
|
||||
## 0.22.1
|
||||
|
||||
* Fix `pkg.files`
|
||||
|
||||
## 0.22.0
|
||||
|
||||
* Move generated files into `__sapper__` ([#453](https://github.com/sveltejs/sapper/pull/453))
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
{
|
||||
"name": "sapper",
|
||||
"version": "0.22.0",
|
||||
"version": "0.22.1",
|
||||
"description": "Military-grade apps, engineered by Svelte",
|
||||
"bin": {
|
||||
"sapper": "./sapper"
|
||||
},
|
||||
"files": [
|
||||
"*.js",
|
||||
"runtime",
|
||||
"webpack",
|
||||
"config",
|
||||
"sapper",
|
||||
"components",
|
||||
"dist/*.js"
|
||||
"dist/*.js",
|
||||
"templates/*.js"
|
||||
],
|
||||
"directories": {
|
||||
"test": "test"
|
||||
|
||||
@@ -16,7 +16,7 @@ function template(kind, external) {
|
||||
return {
|
||||
input: `templates/src/${kind}/index.ts`,
|
||||
output: {
|
||||
file: `templates/dist/${kind}.js`,
|
||||
file: `templates/${kind}.js`,
|
||||
format: 'es'
|
||||
},
|
||||
external,
|
||||
|
||||
@@ -64,7 +64,7 @@ function generate_client(
|
||||
bundler: string,
|
||||
dev_port?: number
|
||||
) {
|
||||
const template_file = path.resolve(__dirname, '../templates/dist/client.js');
|
||||
const template_file = path.resolve(__dirname, '../templates/client.js');
|
||||
const template = fs.readFileSync(template_file, 'utf-8');
|
||||
|
||||
const page_ids = new Set(manifest_data.pages.map(page =>
|
||||
@@ -145,7 +145,7 @@ function generate_server(
|
||||
manifest_data: ManifestData,
|
||||
path_to_routes: string
|
||||
) {
|
||||
const template_file = path.resolve(__dirname, '../templates/dist/server.js');
|
||||
const template_file = path.resolve(__dirname, '../templates/server.js');
|
||||
const template = fs.readFileSync(template_file, 'utf-8');
|
||||
|
||||
const imports = [].concat(
|
||||
|
||||
Reference in New Issue
Block a user