diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-07-18 23:24:26 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-07-18 23:24:26 -0400 |
| commit | 144758141156d8d00bb67f45d48dd7e6bf34525b (patch) | |
| tree | f16d95be370b781185ac5c3de2829c5617d583b0 | |
| parent | e36e01917651ccfff64f948c36ee93d310071991 (diff) | |
Specify port to Rollup, tell `tsc` to allow importing `json` files
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | tsconfig.json | 15 |
2 files changed, 13 insertions, 4 deletions
diff --git a/package.json b/package.json index def4f0a..91552a3 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "build": "rollup -c", - "dev": "rollup -c -w", + "dev": "rollup -c -w --environment PORT:1776", "start": "sirv public --no-clear", "check": "svelte-check --tsconfig ./tsconfig.json" }, diff --git a/tsconfig.json b/tsconfig.json index 561adfa..bbb617e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,15 @@ { "extends": "@tsconfig/svelte/tsconfig.json", - "compilerOptions": {"strictNullChecks": true}, - "include": ["src/**/*"], - "exclude": ["node_modules/*", "__sapper__/*", "public/*"] + "compilerOptions": { + "strictNullChecks": true, + "resolveJsonModule": true + }, + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules/*", + "__sapper__/*", + "public/*" + ] }
\ No newline at end of file |
