replaced usage to ts-node with CLI nodeTransform
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
---
|
||||
'@techdocs/cli': patch
|
||||
'@backstage/create-app': patch
|
||||
'@backstage/repo-tools': patch
|
||||
'@backstage/codemods': patch
|
||||
'@backstage/cli': patch
|
||||
---
|
||||
|
||||
Removed the `ts-node` dev dependency.
|
||||
@@ -43,6 +43,6 @@ jobs:
|
||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||
NODE_OPTIONS: --max-old-space-size=7168
|
||||
- name: Update Github issues
|
||||
run: yarn ts-node scripts/snyk-github-issue-sync.ts
|
||||
run: ./scripts/snyk-github-issue-sync.ts
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -128,7 +128,6 @@
|
||||
"shx": "^0.3.2",
|
||||
"sloc": "^0.3.1",
|
||||
"sort-package-json": "^2.8.0",
|
||||
"ts-node": "^10.4.0",
|
||||
"typescript": "~5.1.0"
|
||||
},
|
||||
"packageManager": "yarn@3.2.3",
|
||||
|
||||
@@ -24,14 +24,6 @@ const isLocal = require('fs').existsSync(path.resolve(__dirname, '../src'));
|
||||
if (!isLocal || process.env.BACKSTAGE_E2E_CLI_TEST) {
|
||||
require('..');
|
||||
} else {
|
||||
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');
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
| glob | package.json | error |
|
||||
| util | package.json | error |
|
||||
|
||||
## Unused devDependencies (12)
|
||||
## Unused devDependencies (11)
|
||||
|
||||
| Name | Location | Severity |
|
||||
| :-------------------------------------- | :----------- | :------- |
|
||||
@@ -47,7 +47,6 @@
|
||||
| @types/svgo | package.json | error |
|
||||
| @types/ejs | package.json | error |
|
||||
| nodemon | package.json | error |
|
||||
| ts-node | package.json | error |
|
||||
| del | package.json | error |
|
||||
|
||||
## Referenced optional peerDependencies (4)
|
||||
|
||||
@@ -170,8 +170,7 @@
|
||||
"@types/yarnpkg__lockfile": "^1.1.4",
|
||||
"del": "^7.0.0",
|
||||
"msw": "^1.0.0",
|
||||
"nodemon": "^3.0.1",
|
||||
"ts-node": "^10.0.0"
|
||||
"nodemon": "^3.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@vitejs/plugin-react": "^4.0.4",
|
||||
|
||||
@@ -24,14 +24,6 @@ const isLocal = require('fs').existsSync(path.resolve(__dirname, '../src'));
|
||||
if (!isLocal) {
|
||||
require('..');
|
||||
} else {
|
||||
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,8 +1,2 @@
|
||||
# Knip report
|
||||
|
||||
## Unused devDependencies (1)
|
||||
|
||||
| Name | Location | Severity |
|
||||
| :------ | :----------- | :------- |
|
||||
| ts-node | package.json | error |
|
||||
|
||||
|
||||
@@ -52,7 +52,6 @@
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "workspace:^",
|
||||
"@types/jscodeshift": "^0.11.0",
|
||||
"@types/node": "^18.17.8",
|
||||
"ts-node": "^10.0.0"
|
||||
"@types/node": "^18.17.8"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,15 +24,6 @@ const isLocal = require('fs').existsSync(path.resolve(__dirname, '../src'));
|
||||
if (!isLocal || process.env.BACKSTAGE_E2E_CLI_TEST) {
|
||||
require('..');
|
||||
} else {
|
||||
// Only used for development, so should be a devDependency
|
||||
// eslint-disable-next-line @backstage/no-undeclared-imports
|
||||
require('ts-node').register({
|
||||
transpileOnly: true,
|
||||
project: path.resolve(__dirname, '../../../tsconfig.json'),
|
||||
compilerOptions: {
|
||||
module: 'CommonJS',
|
||||
},
|
||||
});
|
||||
|
||||
require('@backstage/cli/config/nodeTransform.cjs');
|
||||
require('../src');
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
# Knip report
|
||||
|
||||
## Unused devDependencies (3)
|
||||
## Unused devDependencies (2)
|
||||
|
||||
| Name | Location | Severity |
|
||||
| :-------------------- | :----------- | :------- |
|
||||
| @types/command-exists | package.json | error |
|
||||
| nodemon | package.json | error |
|
||||
| ts-node | package.json | error |
|
||||
|
||||
|
||||
@@ -52,8 +52,7 @@
|
||||
"@types/node": "^18.17.8",
|
||||
"@types/recursive-readdir": "^2.2.0",
|
||||
"msw": "^1.0.0",
|
||||
"nodemon": "^3.0.1",
|
||||
"ts-node": "^10.0.0"
|
||||
"nodemon": "^3.0.1"
|
||||
},
|
||||
"nodemonConfig": {
|
||||
"watch": "./src",
|
||||
|
||||
@@ -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,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 |
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -24,14 +24,6 @@ const isLocal = require('fs').existsSync(path.resolve(__dirname, '../src'));
|
||||
if (!isLocal || process.env.BACKSTAGE_E2E_CLI_TEST) {
|
||||
require('..');
|
||||
} else {
|
||||
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,6 +1,6 @@
|
||||
# Knip report
|
||||
|
||||
## Unused dependencies (6)
|
||||
## Unused dependencies (5)
|
||||
|
||||
| Name | Location | Severity |
|
||||
| :---------------------------------- | :----------- | :------- |
|
||||
@@ -8,7 +8,6 @@
|
||||
| @stoplight/spectral-functions | package.json | error |
|
||||
| @stoplight/spectral-runtime | package.json | error |
|
||||
| is-glob | package.json | error |
|
||||
| ts-node | package.json | error |
|
||||
| glob | package.json | error |
|
||||
|
||||
## Unused devDependencies (1)
|
||||
|
||||
@@ -59,7 +59,6 @@
|
||||
"minimatch": "^9.0.0",
|
||||
"p-limit": "^3.0.2",
|
||||
"portfinder": "^1.0.32",
|
||||
"ts-node": "^10.0.0",
|
||||
"yaml-diff-patch": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -24,13 +24,6 @@ const isLocal = require('fs').existsSync(path.resolve(__dirname, '../src'));
|
||||
if (!isLocal) {
|
||||
require('..');
|
||||
} else {
|
||||
require('ts-node').register({
|
||||
transpileOnly: true,
|
||||
project: path.resolve(__dirname, '../../../tsconfig.json'),
|
||||
compilerOptions: {
|
||||
module: 'CommonJS',
|
||||
},
|
||||
});
|
||||
|
||||
require('@backstage/cli/config/nodeTransform.cjs');
|
||||
require('../src');
|
||||
}
|
||||
|
||||
@@ -6,11 +6,10 @@
|
||||
| :----------- | :----------- | :------- |
|
||||
| global-agent | package.json | error |
|
||||
|
||||
## Unused devDependencies (3)
|
||||
## Unused devDependencies (2)
|
||||
|
||||
| Name | Location | Severity |
|
||||
| :----------------- | :----------- | :------- |
|
||||
| @types/webpack-env | package.json | error |
|
||||
| nodemon | package.json | error |
|
||||
| ts-node | package.json | error |
|
||||
|
||||
|
||||
@@ -44,8 +44,7 @@
|
||||
"@types/webpack-env": "^1.15.3",
|
||||
"find-process": "^1.4.5",
|
||||
"nodemon": "^3.0.1",
|
||||
"techdocs-cli-embedded-app": "link:../techdocs-cli-embedded-app",
|
||||
"ts-node": "^10.0.0"
|
||||
"techdocs-cli-embedded-app": "link:../techdocs-cli-embedded-app"
|
||||
},
|
||||
"files": [
|
||||
"bin",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env yarn ts-node --transpile-only
|
||||
#!/usr/bin/env node --require @backstage/cli/config/nodeTransform.cjs
|
||||
/*
|
||||
* Copyright 2021 The Backstage Authors
|
||||
*
|
||||
|
||||
@@ -3710,7 +3710,6 @@ __metadata:
|
||||
swc-loader: ^0.2.3
|
||||
tar: ^6.1.12
|
||||
terser-webpack-plugin: ^5.1.3
|
||||
ts-node: ^10.0.0
|
||||
util: ^0.12.3
|
||||
webpack: ^5.70.0
|
||||
webpack-dev-server: ^4.7.3
|
||||
@@ -3750,7 +3749,6 @@ __metadata:
|
||||
commander: ^12.0.0
|
||||
jscodeshift: ^0.15.0
|
||||
jscodeshift-add-imports: ^1.0.10
|
||||
ts-node: ^10.0.0
|
||||
bin:
|
||||
backstage-codemods: bin/backstage-codemods
|
||||
languageName: unknown
|
||||
@@ -4106,7 +4104,6 @@ __metadata:
|
||||
nodemon: ^3.0.1
|
||||
ora: ^5.3.0
|
||||
recursive-readdir: ^2.2.2
|
||||
ts-node: ^10.0.0
|
||||
bin:
|
||||
backstage-create-app: bin/backstage-create-app
|
||||
languageName: unknown
|
||||
@@ -10138,7 +10135,6 @@ __metadata:
|
||||
minimatch: ^9.0.0
|
||||
p-limit: ^3.0.2
|
||||
portfinder: ^1.0.32
|
||||
ts-node: ^10.0.0
|
||||
yaml-diff-patch: ^2.0.0
|
||||
peerDependencies:
|
||||
"@microsoft/api-extractor-model": "*"
|
||||
@@ -17905,7 +17901,6 @@ __metadata:
|
||||
react-dev-utils: ^12.0.0-next.60
|
||||
serve-handler: ^6.1.3
|
||||
techdocs-cli-embedded-app: "link:../techdocs-cli-embedded-app"
|
||||
ts-node: ^10.0.0
|
||||
winston: ^3.2.1
|
||||
bin:
|
||||
techdocs-cli: bin/techdocs-cli
|
||||
@@ -26043,7 +26038,6 @@ __metadata:
|
||||
nodemon: ^3.0.1
|
||||
pgtools: ^1.0.0
|
||||
tree-kill: ^1.2.2
|
||||
ts-node: ^10.0.0
|
||||
bin:
|
||||
e2e-test: bin/e2e-test
|
||||
languageName: unknown
|
||||
@@ -41157,7 +41151,6 @@ __metadata:
|
||||
shx: ^0.3.2
|
||||
sloc: ^0.3.1
|
||||
sort-package-json: ^2.8.0
|
||||
ts-node: ^10.4.0
|
||||
typescript: ~5.1.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -43998,7 +43991,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ts-node@npm:^10.0.0, ts-node@npm:^10.4.0, ts-node@npm:^10.9.1":
|
||||
"ts-node@npm:^10.9.1":
|
||||
version: 10.9.2
|
||||
resolution: "ts-node@npm:10.9.2"
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user