Skip to content

Commit dcc6a50

Browse files
authored
(chore) add svelte-check smoketest (#1090)
to hopefully catch build hickups #1089
1 parent 7abeef4 commit dcc6a50

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

packages/svelte-check/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/node_modules
22
/src
3+
/test
34
tsconfig.json
45
rollup.config.js

packages/svelte-check/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"svelte": "^3.24.0"
3434
},
3535
"scripts": {
36-
"build": "rollup -c",
36+
"build": "rollup -c && node ./dist/src/index.js --workspace ./test --tsconfig ./tsconfig.json",
3737
"prepublishOnly": "npm run build",
3838
"test": "echo 'NOOP'"
3939
},
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<script>
2+
const a = true;
3+
a === true;
4+
</script>
5+
6+
{a}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "@tsconfig/node12/tsconfig.json",
3+
"compilerOptions": {
4+
"moduleResolution": "node",
5+
"strict": true,
6+
"allowJs": true,
7+
"checkJs": true
8+
},
9+
"files": ["./Index.svelte"]
10+
}

0 commit comments

Comments
 (0)