From 37e8b011e1af4336524f8a89292a728ad573dd2c Mon Sep 17 00:00:00 2001 From: Alex Ruddick Date: Tue, 26 Sep 2023 20:27:04 -0500 Subject: [PATCH] Fix scripts --- package.json | 2 +- tsconfig.server.json | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tsconfig.server.json 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" ] +}