Skip to content

Commit a75f499

Browse files
CommandMCtrflynn89
authored andcommitted
Meta: Specify "--files" when running ts-node
We're setting "include" and "exclude" in our tsconfig, but ts-node will only load them if "--files" is passed to it. This fixes up the "start:dev" command.
1 parent 3c5e0ab commit a75f499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"lint": "eslint . --ext .ts",
1212
"lint-and-fix": "eslint . --ext .ts --fix",
13-
"start:dev": "nodemon --watch './src/**' --ext 'ts,js,json' --exec \"ts-node ./src/index.ts\"",
13+
"start:dev": "nodemon --watch './src/**' --ext 'ts,js,json' --exec \"ts-node --files ./src/index.ts\"",
1414
"prebuild": "rimraf ./build",
1515
"build": "tsc",
1616
"prestart": "npm run build",

0 commit comments

Comments
 (0)