chore: run tsc properly

runs type check as part of the CI. This needs a new path alias in the tsconfig so that TS resolves the svelte import in the ambient file directly to the correct d.ts file and doesn't load Svelte through the node_modules, at which point it would load the generated ambient type definitions and throw a duplicate definitions error.

also removes a tgz that was accidentally added
pull/8884/head
Simon Holthausen 3 years ago
parent d3d1fb563f
commit 0a67d8b1aa

@ -49,4 +49,4 @@ jobs:
with:
node-version: 16
cache: pnpm
- run: 'pnpm i && pnpm check && pnpm lint'
- run: 'pnpm i && pnpm typecheck && pnpm check && pnpm lint'

@ -11,6 +11,7 @@
"check": "cd packages/svelte && pnpm build && cd ../../ && pnpm -r check",
"lint": "pnpm -r lint",
"format": "pnpm -r format",
"typecheck": "pnpm -r typecheck",
"changeset:version": "changeset version && pnpm -r generate:version && git add --all",
"changeset:publish": "changeset publish"
},

@ -82,6 +82,7 @@
"posttest": "agadoo src/internal/index.js",
"prepublishOnly": "pnpm build",
"types": "node ./scripts/generate-dts.js",
"typecheck": "tsc --noEmit",
"lint": "eslint \"{src,test}/**/*.{ts,js}\" --cache"
},
"repository": {

Binary file not shown.

@ -35,6 +35,9 @@
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"typeRoots": ["./node_modules/@types"]
"typeRoots": ["./node_modules/@types"],
"paths": {
"svelte": ["./src/runtime/public.d.ts"]
}
}
}

Loading…
Cancel
Save