Skip to content

Commit

Permalink
Windows build and dev support for kit package (sveltejs#1496)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
  • Loading branch information
2 people authored and andyburke committed May 25, 2021
1 parent 08417fa commit 35c1108
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"svelte-kit.js"
],
"scripts": {
"dev": "rm -rf assets/runtime && rollup -cw",
"build": "rm -rf assets/runtime && rollup -c",
"build": "rollup -c",
"dev": "rollup -cw",
"lint": "eslint --ignore-path .gitignore \"src/**/*.{ts,mjs,js,svelte}\" && npm run check-format",
"check": "tsc && svelte-check",
"format": "prettier --write . --config ../../.prettierrc --ignore-path .gitignore",
Expand Down
3 changes: 3 additions & 0 deletions packages/kit/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import commonjs from '@rollup/plugin-commonjs';
import fs from 'fs';
import replace from '@rollup/plugin-replace';
import resolve from '@rollup/plugin-node-resolve';
import pkg from './package.json';

(fs.rmSync || fs.rmdirSync)('assets/runtime', { recursive: true, force: true });

const external = [].concat(
Object.keys(pkg.dependencies || {}),
Object.keys(pkg.peerDependencies || {}),
Expand Down

0 comments on commit 35c1108

Please sign in to comment.