|
2 | 2 | "name": "create-nodejs-ts",
|
3 | 3 | "version": "2.1.0",
|
4 | 4 | "description": "NodeJS Starter Project Kit",
|
5 |
| - "private": false, |
| 5 | + "type": "module", |
6 | 6 | "main": "dist/index.js",
|
7 | 7 | "types": "dist/index.d.ts",
|
| 8 | + "private": false, |
8 | 9 | "bin": {
|
9 | 10 | "create-nodejs-ts": "cmd/create-nodejs-ts/index.js"
|
10 | 11 | },
|
11 | 12 | "scripts": {
|
12 |
| - "start": "nodemon --ext js,ts,json,env src/index.ts", |
| 13 | + "start": "node dist/index.js", |
| 14 | + "start:dev": "nodemon --ext js,ts,json,env --exec 'node --experimental-specifier-resolution=node --loader ts-node/esm' src/index.ts", |
13 | 15 | "prepare": "husky install",
|
14 | 16 | "build": "tsc --project tsconfig.build.json",
|
15 | 17 | "release": "standard-version",
|
16 |
| - "test": "jest --detectOpenHandles --logHeapUsage", |
| 18 | + "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --detectOpenHandles", |
17 | 19 | "test:coverage": "npm run test -- --coverage",
|
18 | 20 | "test:ci": "npm run test -- --colors --coverage --ci",
|
19 | 21 | "lint": "eslint --ext .ts,.js .",
|
20 |
| - "format": "prettier \"src/**\" --write --ignore-unknown", |
21 |
| - "format:check": "prettier --check \"src/**\" --ignore-unknown" |
22 |
| - }, |
23 |
| - "engines": { |
24 |
| - "node": ">=16" |
| 22 | + "format": "prettier './**' --write --ignore-unknown", |
| 23 | + "format:check": "prettier './**' --ignore-unknown --check" |
25 | 24 | },
|
26 | 25 | "author": {
|
27 | 26 | "name": "Vitor Hugo Salgado",
|
|
52 | 51 | "devDependencies": {
|
53 | 52 | "@commitlint/cli": "^16.2.3",
|
54 | 53 | "@commitlint/config-conventional": "^16.2.1",
|
| 54 | + "@jest/globals": "^27.5.1", |
55 | 55 | "@jest/types": "^27.5.1",
|
56 | 56 | "@types/jest": "^27.4.1",
|
57 | 57 | "@types/node": "^17.0.23",
|
58 | 58 | "@typescript-eslint/eslint-plugin": "^5.16.0",
|
59 | 59 | "@typescript-eslint/parser": "^5.16.0",
|
| 60 | + "cross-env": "^7.0.3", |
60 | 61 | "eslint": "^8.12.0",
|
61 | 62 | "eslint-plugin-import": "^2.25.4",
|
62 | 63 | "eslint-plugin-node": "^11.1.0",
|
|
0 commit comments