87 lines
3.5 KiB
JSON
87 lines
3.5 KiB
JSON
|
{
|
||
|
"name": "@internal/template-typescript",
|
||
|
"version": "1.0.0-dev.1",
|
||
|
"description": "Just another cool typescript project",
|
||
|
"main": "dist/index.js",
|
||
|
"types": "dist/types/",
|
||
|
"directories": {
|
||
|
"bin": "dist/bin/"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"start": "npm run build && node --enable-source-maps .",
|
||
|
"test": "npm run build && npm run test:jest && npm run test:style",
|
||
|
"format": "prettier --write .",
|
||
|
"build": "tsc",
|
||
|
"deploy:npm": "npm publish",
|
||
|
"deploy:docker": "npm run prepack && docker build -t astrogd/template-typescript:latest .",
|
||
|
"version:dev": "npm version prerelease --preid dev --no-commit-hooks --no-git-tag-version",
|
||
|
"version:patch": "npm version prepatch --preid dev --no-commit-hooks --no-git-tag-version",
|
||
|
"version:minor": "npm version preminor --preid dev --no-commit-hooks --no-git-tag-version",
|
||
|
"version:major": "npm version premajor --preid dev --no-commit-hooks --no-git-tag-version",
|
||
|
"version:release": "npm version patch --no-commit-hooks --no-git-tag-version",
|
||
|
"ci:sign": "drone sign internal/template-typescript --save",
|
||
|
"test:jest": "jest --coverage",
|
||
|
"test:style": "eslint **.ts --fix",
|
||
|
"postinstall": "jest --clearCache",
|
||
|
"prepack": "npx rimraf dist && npm run test && npm run build",
|
||
|
"migration:create": "node --require ts-node/register ./node_modules/typeorm/cli.js migration:generate -d src/db/dataSource.ts -p src/db/migrations/data",
|
||
|
"migration:run": "node --require ts-node/register ./node_modules/typeorm/cli.js migration:run -d src/db/dataSource.ts",
|
||
|
"migration:revert": "node --require ts-node/register ./node_modules/typeorm/cli.js migration:revert -d src/db/dataSource.ts",
|
||
|
"migration:show": "node --require ts-node/register ./node_modules/typeorm/cli.js migration:show -d src/db/dataSource.ts",
|
||
|
"migration:check": "node --require ts-node/register ./node_modules/typeorm/cli.js migration:generate --check -d src/db/dataSource.ts src/db/migrations/data"
|
||
|
},
|
||
|
"author": "AstroGD Lukas Weber <hello@astrogd.eu> (https://www.astrogd.eu/)",
|
||
|
"license": "UNLICENSED",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "https://git.astrogd.cloud/internal/template-typescript.git"
|
||
|
},
|
||
|
"jest": {
|
||
|
"preset": "ts-jest",
|
||
|
"testEnvironment": "node",
|
||
|
"coverageThreshold": {
|
||
|
"global": {
|
||
|
"branches": 80,
|
||
|
"functions": 80,
|
||
|
"lines": 80,
|
||
|
"statements": -20
|
||
|
},
|
||
|
"**/*.{ts,tsx}": {
|
||
|
"branches": 95,
|
||
|
"functions": 95,
|
||
|
"lines": 95,
|
||
|
"statements": -5
|
||
|
}
|
||
|
},
|
||
|
"collectCoverageFrom": [
|
||
|
"**/*.ts",
|
||
|
"!**/*.d.ts",
|
||
|
"!**/node_modules /**",
|
||
|
"!**/coverage /**"
|
||
|
],
|
||
|
"testPathIgnorePatterns": [
|
||
|
"/node_modules/",
|
||
|
"/*.d.ts"
|
||
|
]
|
||
|
},
|
||
|
"devDependencies": {
|
||
|
"@types/jest": "^29.4.0",
|
||
|
"@types/node": "^18.16.19",
|
||
|
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
||
|
"@typescript-eslint/parser": "^6.7.0",
|
||
|
"eslint": "^8.33.0",
|
||
|
"jest": "^29.4.2",
|
||
|
"prettier": "^3.0.0",
|
||
|
"rimraf": "^5.0.1",
|
||
|
"ts-jest": "^29.0.5",
|
||
|
"ts-node": "^10.9.1",
|
||
|
"typescript": "^5.1.6"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"dotenv": "^16.3.1",
|
||
|
"dotenv-expand": "^10.0.0",
|
||
|
"pg": "^8.11.1",
|
||
|
"typeorm": "^0.3.17"
|
||
|
}
|
||
|
}
|