Skip to content

Commit

Permalink
build: use tsconfig from svelte
Browse files Browse the repository at this point in the history
build: mark package as a module
  • Loading branch information
Koen Van Rulo committed Jul 22, 2022
1 parent 9e3f1c5 commit afb6401
Show file tree
Hide file tree
Showing 3 changed files with 411 additions and 423 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"description": "Scroll to given elements with smooth animation",
"author": "Valmisson Grizorte",
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"src",
"dist"
],
"scripts": {
Expand All @@ -19,6 +21,7 @@
"svelte": "^3.38.3"
},
"devDependencies": {
"@tsconfig/svelte": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"conventional-changelog-cli": "^2.2.2",
Expand Down
32 changes: 6 additions & 26 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,12 @@
{
"extends": "@tsconfig/svelte/tsconfig.json",
"include": ["src/**/*"],
"exclude": ["node_modules/*", "dist/*"],
"compilerOptions": {
"baseUrl": ".",
"outDir": "dist",
"sourceMap": false,
"target": "es2018",
"module": "commonjs",
"moduleResolution": "node",
"allowJs": false,
"strict": true,
"noUnusedLocals": true,
"experimentalDecorators": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"removeComments": false,
"declaration": true,
"skipLibCheck": true,
"lib": [
"es2018",
"dom",
"dom.iterable"
]
"outDir": "dist"
},
"include": [
"src/**/*.ts",
"src/**/*.js",
"src/types/*.d.ts"
],
"exclude": [
"node_modules"
]
"include": ["src/**/*.ts", "src/**/*.js", "src/types/*.d.ts"],
"exclude": ["node_modules"]
}
Loading

0 comments on commit afb6401

Please sign in to comment.