Skip to content

Commit

Permalink
chore: update rollup config(remove unused dependencies), update tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
bre97-web committed Sep 4, 2024
1 parent 1fcd886 commit edd7a91
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 16 deletions.
39 changes: 27 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,41 @@
"types": "build/index.d.ts",
"typings": "build/index.d.ts",
"workspaces": [
"test"
"dev-app"
],
"scripts": {
"lint": "gts lint",
"clean": "gts clean",
"compile": "rollup --config",
"fix": "gts fix"
"dev": "wireit",
"compile": "wireit"
},
"author": "bre97-web",
"license": "MIT",
"type": "module",
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/node": "20.8.2",
"gts": "^5.2.0",
"rollup": "^4.13.0",
"tailwindcss": "^3.4.1",
"typescript": "~5.2.0"
"@types/node": "22.5.3",
"rollup": "^4.21.2",
"tailwindcss": "^3.4.10",
"typescript": "~5.5.4",
"wireit": "^0.14.9"
},
"wireit": {
"dev": {
"command": "npm run dev -w dev-app",
"files": [
"src/**/*",
"dev-app/**/*"
]
},
"compile": {
"command": "npx rollup --config",
"files": [
"src/**/*"
],
"output": [
"build/**/*"
],
"clean": true
}
}
}
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import terser from '@rollup/plugin-terser'
import typescript from '@rollup/plugin-typescript'

export default {
export default ({
input: './src/index.ts',
output: [
{
Expand All @@ -14,4 +14,4 @@ export default {
typescript({ tsconfig: './tsconfig.json' }),
terser(),
],
}
})
17 changes: 15 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
{
"extends": "./node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": "./src",
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"declaration": true,
"forceConsistentCasingInFileNames": true,
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noEmit": true,
"pretty": true,
"sourceMap": true,
"strict": true,
"outDir": "build",
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
Expand All @@ -15,8 +24,12 @@
"lib": [
"ES2022"
],
"baseUrl": "./",
},
"include": [
"src/**/*.ts",
],
"exclude": [
"node_modules"
]
}

0 comments on commit edd7a91

Please sign in to comment.