diff --git a/nodemon.json b/nodemon.json index 8c93bb1a..a1c9d66b 100644 --- a/nodemon.json +++ b/nodemon.json @@ -8,5 +8,8 @@ "watch": [ "**/*" ], - "ext": "ts,js,twig" + "ext": "ts,js,twig", + "execMap": { + "ts": "node --loader ts-node/esm" + } } diff --git a/package.json b/package.json index 4e6ae914..f0395845 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "codex.docs", "license": "Apache-2.0", - "version": "2.2.3", + "version": "2.2.4", "type": "module", "bin": { "codex.docs": "dist/backend/app.js" @@ -14,7 +14,7 @@ "start": "concurrently \"yarn start-backend\" \"yarn build-frontend\"", "dev": "concurrently \"yarn start-backend\" \"yarn build-frontend:dev\"", "build-all": "yarn build-frontend && yarn build-backend", - "build-static": "ts-node src/backend/app.ts build-static -c docs-config.yaml -c docs-config.local.yaml", + "build-static": "node --loader ts-node/esm src/backend/app.ts build-static -c docs-config.yaml -c docs-config.local.yaml", "start-backend": "cross-env NODE_ENV=development npx nodemon --config nodemon.json src/backend/app.ts -c docs-config.yaml -c docs-config.local.yaml", "build-backend": "tsc && copyfiles -u 3 ./src/**/*.twig ./dist/backend/views && copyfiles -u 1 ./src/**/*.svg ./dist/", "build-frontend": "webpack --mode=production",