Compare commits

..

3 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
3 changed files with 8 additions and 3 deletions

View File

@@ -1,5 +1,9 @@
# sapper changelog
## 0.6.2
* Handle unspecified type in `sapper export`
## 0.6.1
* Fix `pkg.files` and `pkg.bin`

View File

@@ -1,6 +1,6 @@
{
"name": "sapper",
"version": "0.6.1",
"version": "0.6.2",
"description": "Military-grade apps, engineered by Svelte",
"main": "middleware.js",
"bin": {
@@ -66,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);