Create build script

This commit is contained in:
2024-11-14 14:18:24 +01:00
parent 354a03f53c
commit b94940e8fd
3 changed files with 27 additions and 1 deletions

3
package-lock.json generated
View File

@@ -17,6 +17,9 @@
"tough-cookie": "^5.0.0",
"yaml": "^2.6.0"
},
"bin": {
"tauron-scrapper": "dist/index.js"
},
"devDependencies": {
"@types/node": "^22.9.0",
"@types/tough-cookie": "^4.0.5",

View File

@@ -4,10 +4,14 @@
"description": "The utility which scrappes the Tauron eLicznik data and pushes it to some services",
"main": "index.ts",
"scripts": {
"start": "tsx src/index.ts"
"start": "tsx src/index.ts",
"build": "tsc"
},
"author": "Bartłomiej Pluta <noreply.git@mx.bartlomiejpluta.com>",
"license": "ISC",
"bin": {
"tauron-scrapper": "./dist/index.js"
},
"devDependencies": {
"@types/node": "^22.9.0",
"@types/tough-cookie": "^4.0.5",

19
tsconfig.json Normal file
View File

@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"typeRoots": [
"./src/types",
"./node_modules/@types"
]
},
"include": ["src/**/*"],
"exclude": [
"node_modules",
"src/types"
]
}