From 21037fb5c98e02103e38ef1085dca19a12ed6e2d Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Fri, 9 Jul 2021 08:47:14 +0200 Subject: [PATCH] (chore) add svelte-check smoketest to hopefully catch build hickups #1089 --- packages/svelte-check/.npmignore | 1 + packages/svelte-check/package.json | 2 +- packages/svelte-check/test/Index.svelte | 6 ++++++ packages/svelte-check/test/tsconfig.json | 10 ++++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 packages/svelte-check/test/Index.svelte create mode 100644 packages/svelte-check/test/tsconfig.json diff --git a/packages/svelte-check/.npmignore b/packages/svelte-check/.npmignore index c4366e314..a03add1fd 100644 --- a/packages/svelte-check/.npmignore +++ b/packages/svelte-check/.npmignore @@ -1,4 +1,5 @@ /node_modules /src +/test tsconfig.json rollup.config.js diff --git a/packages/svelte-check/package.json b/packages/svelte-check/package.json index beabed970..efdf8f971 100644 --- a/packages/svelte-check/package.json +++ b/packages/svelte-check/package.json @@ -33,7 +33,7 @@ "svelte": "^3.24.0" }, "scripts": { - "build": "rollup -c", + "build": "rollup -c && node ./dist/src/index.js --workspace ./test --tsconfig ./tsconfig.json", "prepublishOnly": "npm run build", "test": "echo 'NOOP'" }, diff --git a/packages/svelte-check/test/Index.svelte b/packages/svelte-check/test/Index.svelte new file mode 100644 index 000000000..4456cd0e7 --- /dev/null +++ b/packages/svelte-check/test/Index.svelte @@ -0,0 +1,6 @@ + + +{a} diff --git a/packages/svelte-check/test/tsconfig.json b/packages/svelte-check/test/tsconfig.json new file mode 100644 index 000000000..15458e89c --- /dev/null +++ b/packages/svelte-check/test/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "@tsconfig/node12/tsconfig.json", + "compilerOptions": { + "moduleResolution": "node", + "strict": true, + "allowJs": true, + "checkJs": true + }, + "files": ["./Index.svelte"] +}