From 144758141156d8d00bb67f45d48dd7e6bf34525b Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Mon, 18 Jul 2022 23:24:26 -0400 Subject: Specify port to Rollup, tell `tsc` to allow importing `json` files --- package.json | 2 +- 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 -- cgit v1.2.3