Skip to content

Commit

Permalink
chore: Modernise build/test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed May 7, 2024
1 parent 18b877d commit c3b994b
Show file tree
Hide file tree
Showing 24 changed files with 1,657 additions and 2,629 deletions.
11 changes: 0 additions & 11 deletions .npmignore

This file was deleted.

49 changes: 28 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"name": "fastify-micro",
"version": "0.0.0-semantically-released",
"description": "Opinionated Node.js microservices framework built on fastify",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
"author": {
"name": "François Best",
Expand All @@ -26,55 +24,64 @@
"sceau.json",
".env.example"
],
"type": "module",
"sideEffects": false,
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./env": {
"types": "./dist/env.d.ts",
"import": "./dist/env.js"
}
},
"scripts": {
"test": "NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" jest --coverage --runInBand",
"test:watch": "NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" jest --watch --runInBand",
"test": "NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" vitest run --coverage",
"test:watch": "NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" vitest",
"prebuild": "rm -rf ./dist && mkdir -p ./dist",
"build": "run-p build:*",
"build:ts": "tsc",
"build:bundle": "tsup",
"build:copy-worker": "cp -f ./src/logRedactionWorker.mjs ./dist/",
"ci": "run-s build test",
"ci": "run-p build test",
"test:integration": "NODE_ENV=production ts-node ./tests/integration/main.ts",
"prepare": "husky",
"mkcert": "mkcert -cert-file ./certs/fastify-micro.localhost.pem -key-file ./certs/fastify-micro.localhost-key.pem fastify-micro.localhost localhost 127.0.0.1 ::1"
},
"peerDependencies": {
"fastify": "^4",
"pino": "^8"
"pino": "^9"
},
"dependencies": {
"@47ng/check-env": "^3.0.0",
"@fastify/autoload": "^5.8.2",
"@fastify/sensible": "^5.6.0",
"@fastify/under-pressure": "^8.3.0",
"@sentry/node": "^7.113.0",
"@t3-oss/env-core": "^0.10.1",
"fastify-plugin": "^4.5.1",
"pino-abstract-transport": "^1.2.0",
"redact-env": "^1.0.0",
"sonic-boom": "^4.0.1"
"sonic-boom": "^4.0.1",
"zod": "^3.23.6"
},
"devDependencies": {
"@commitlint/config-conventional": "^19.2.2",
"@swc/cli": "^0.3.12",
"@swc/core": "^1.5.3",
"@swc/helpers": "^0.5.11",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.10",
"@types/pino": "7.0.5",
"axios": "^1.6.8",
"@vitest/coverage-v8": "^1.6.0",
"commitlint": "^19.3.0",
"fastify": "^4.26.2",
"fastify": "^4.27.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"npm-run-all": "^4.1.5",
"pino": "^9.0.0",
"regenerator-runtime": "^0.14.1",
"redaxios": "^0.5.1",
"sceau": "^1.3.0",
"sentry-testkit": "^5.0.9",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"tsup": "^8.0.2",
"tsx": "^4.9.3",
"typescript": "^5.4.5",
"vitest": "^1.6.0",
"wait-for-expect": "^3.0.2"
},
"jest": {
Expand Down
Loading

0 comments on commit c3b994b

Please sign in to comment.