mirror of
https://github.com/Cameri/nostream.git
synced 2025-03-17 21:31:48 +01:00
chore: add tsconfig for builds
This commit is contained in:
parent
4b8905b470
commit
e538697f0e
@ -7,19 +7,19 @@
|
||||
"dev": "ts-node src/index.ts",
|
||||
"dev:watch": "nodemon --watch src src/index.ts",
|
||||
"clean": "rimraf ./dist",
|
||||
"prebuild": "npm run lint",
|
||||
"build": "npm run clean && tsc",
|
||||
"build": "tsc --project tsconfig.build.json",
|
||||
"build:check": "tsc --noEmit",
|
||||
"lint": "eslint ./src ./test --ext .ts",
|
||||
"lint:fix": "npm run lint -- --fix",
|
||||
"db:migrate": "knex migrate:latest",
|
||||
"db:migrate:rollback": "knex migrate:rollback",
|
||||
"db:seed": "knex seed:run",
|
||||
"start": "npm run build && node dist/index.js",
|
||||
"start": "node dist/index.js",
|
||||
"test": "mocha 'test/**/*.spec.ts'",
|
||||
"test:watch": "npm run test -- --min --watch --watch-files src/**/*,test/**/*",
|
||||
"cover": "nyc npm run test",
|
||||
"cover:watch": "nyc npm run test"
|
||||
"cover:watch": "nyc npm run test",
|
||||
"docker:build": "docker build -t nostr-ts-relay ."
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
30
tsconfig.build.json
Normal file
30
tsconfig.build.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "CommonJS",
|
||||
"declaration": true,
|
||||
"removeComments": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"target": "ESNext",
|
||||
"outDir": "./dist",
|
||||
"moduleResolution": "Node",
|
||||
"types": ["node", "mocha"],
|
||||
"typeRoots": ["./node_modules/@types"],
|
||||
"declarationMap": true,
|
||||
"inlineSourceMap": false,
|
||||
"inlineSources": false,
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"lib": ["ESNext"]
|
||||
},
|
||||
"ts-node": {
|
||||
"transpileOnly": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user