Create build script
This commit is contained in:
3
package-lock.json
generated
3
package-lock.json
generated
@@ -17,6 +17,9 @@
|
|||||||
"tough-cookie": "^5.0.0",
|
"tough-cookie": "^5.0.0",
|
||||||
"yaml": "^2.6.0"
|
"yaml": "^2.6.0"
|
||||||
},
|
},
|
||||||
|
"bin": {
|
||||||
|
"tauron-scrapper": "dist/index.js"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^22.9.0",
|
"@types/node": "^22.9.0",
|
||||||
"@types/tough-cookie": "^4.0.5",
|
"@types/tough-cookie": "^4.0.5",
|
||||||
|
|||||||
@@ -4,10 +4,14 @@
|
|||||||
"description": "The utility which scrappes the Tauron eLicznik data and pushes it to some services",
|
"description": "The utility which scrappes the Tauron eLicznik data and pushes it to some services",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "tsx src/index.ts"
|
"start": "tsx src/index.ts",
|
||||||
|
"build": "tsc"
|
||||||
},
|
},
|
||||||
"author": "Bartłomiej Pluta <noreply.git@mx.bartlomiejpluta.com>",
|
"author": "Bartłomiej Pluta <noreply.git@mx.bartlomiejpluta.com>",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
"bin": {
|
||||||
|
"tauron-scrapper": "./dist/index.js"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^22.9.0",
|
"@types/node": "^22.9.0",
|
||||||
"@types/tough-cookie": "^4.0.5",
|
"@types/tough-cookie": "^4.0.5",
|
||||||
|
|||||||
19
tsconfig.json
Normal file
19
tsconfig.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user