mirror of
https://github.com/LukeHagar/usage-statistics.git
synced 2025-12-06 04:21:55 +00:00
chore: add TypeScript build configuration and update package scripts
This commit is contained in:
@@ -10,8 +10,7 @@
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"dev": "bun --watch --env-file=.dev.env --env-file=.env run src/action.ts",
|
||||
"test:pypi": "bun run test-pypi-bigquery.ts",
|
||||
"test:pypi-detailed": "bun run test-pypi-detailed.ts"
|
||||
"build": "tsc -p tsconfig.build.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
|
||||
21
tsconfig.build.json
Normal file
21
tsconfig.build.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"noEmit": false,
|
||||
"outDir": "dist",
|
||||
"declaration": false,
|
||||
"sourceMap": false,
|
||||
"module": "CommonJS",
|
||||
"target": "ES2020",
|
||||
"moduleResolution": "Node",
|
||||
"lib": ["ES2020"],
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": [
|
||||
"src/action.ts",
|
||||
"src/collectors/**/*.ts",
|
||||
"src/summaries/**/*.ts",
|
||||
"src/utils.ts",
|
||||
"src/clients/**/*.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user