replaced usage to ts-node with CLI nodeTransform

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-03-17 21:25:52 +01:00
parent 0d72065dfd
commit 1bd4596c99
23 changed files with 28 additions and 94 deletions
+1 -11
View File
@@ -15,15 +15,5 @@
* limitations under the License.
*/
const path = require('path');
require('ts-node').register({
transpileOnly: true,
/* eslint-disable-next-line no-restricted-syntax */
project: path.resolve(__dirname, '../../../tsconfig.json'),
compilerOptions: {
module: 'CommonJS',
},
});
require('@backstage/cli/config/nodeTransform.cjs');
require('../src');
+1 -2
View File
@@ -1,10 +1,9 @@
# Knip report
## Unused devDependencies (3)
## Unused devDependencies (2)
| Name | Location | Severity |
| :--------------- | :----------- | :------- |
| @types/puppeteer | package.json | error |
| nodemon | package.json | error |
| ts-node | package.json | error |
+1 -2
View File
@@ -44,8 +44,7 @@
"@types/fs-extra": "^11.0.0",
"@types/node": "^18.17.8",
"@types/puppeteer": "^5.4.4",
"nodemon": "^3.0.1",
"ts-node": "^10.0.0"
"nodemon": "^3.0.1"
},
"nodemonConfig": {
"watch": "./src",