Compare commits

...

4 Commits

Author SHA1 Message Date
Rich Harris
8f1d2e0a04 -> v0.6.2 2018-02-03 13:56:38 -05:00
Rich Harris
dfb8692d78 handle unspecified type in sapper export 2018-02-03 13:56:14 -05:00
Rich Harris
09d3c4d85e add prepublish script 2018-02-03 13:49:21 -05:00
Rich Harris
1e623dde29 -> v0.6.1 2018-02-03 13:48:30 -05:00
3 changed files with 14 additions and 4 deletions

View File

@@ -1,5 +1,13 @@
# sapper changelog
## 0.6.2
* Handle unspecified type in `sapper export`
## 0.6.1
* Fix `pkg.files` and `pkg.bin`
## 0.6.0
* Hydrate on first load, and only on first load ([#93](https://github.com/sveltejs/sapper/pull/93))

View File

@@ -1,13 +1,14 @@
{
"name": "sapper",
"version": "0.6.0",
"version": "0.6.2",
"description": "Military-grade apps, engineered by Svelte",
"main": "middleware.js",
"bin": {
"sapper": "cli/index.js"
"sapper": "cli.js"
},
"files": [
"cli.js",
"core.js",
"middleware.js",
"runtime",
"runtime.js",
@@ -65,7 +66,8 @@
"test": "mocha --opts mocha.opts",
"pretest": "npm run build",
"build": "rollup -c",
"dev": "rollup -cw"
"dev": "rollup -cw",
"prepublish": "npm test"
},
"repository": "https://github.com/sveltejs/sapper",
"keywords": [

View File

@@ -41,7 +41,7 @@ export default function exporter({ src, dest }) { // TODO dest is a terrible nam
let dest = OUTPUT_DIR + pathname;
const type = res.headers.get('Content-Type');
if (type.startsWith('text/html')) dest += '/index.html';
if (type && type.startsWith('text/html')) dest += '/index.html';
sander.writeFileSync(dest, body);