diff --git a/package.json b/package.json index e762836..6fca1b8 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "prepare": "rimraf dist && npm run build", "prestart": "npm run build", "start": "node cli.js", - "dev": "npm run serve & BUILD_MODE=development npm run build:ui", + "dev": "BUILD_MODE=development && npm start", "deploy": "rimraf dist/ui && IS_WEB=1 npm run build:ui && gh-pages --dist dist/ui", "test": "jest" }, diff --git a/tsconfig.server.json b/tsconfig.server.json new file mode 100644 index 0000000..84d68c7 --- /dev/null +++ b/tsconfig.server.json @@ -0,0 +1,16 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "commonjs", + "sourceMap": true, + "outDir": "dist/server", + "baseUrl": ".", + + "paths": { + "*": [ + "node_modules/*" + ] + } + }, + "exclude": [ "src/cli.ts", "src/ui.tsx" ] +}