Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed deprecated and outdated dependencies #349

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,21 @@
"chokidar": "^3.5.1",
"dynamic-dedupe": "^0.3.0",
"minimist": "^1.2.6",
"mkdirp": "^1.0.4",
"mkdirp": "^3.0.1",
"resolve": "^1.0.0",
"rimraf": "^2.6.1",
"rimraf": "^6.0.1",
"source-map-support": "^0.5.12",
"tree-kill": "^1.2.2",
"ts-node": "^10.4.0",
"ts-node": "10.9.2",
"tsconfig": "^7.0.0"
},
"devDependencies": {
"@types/chai": "^4.2.12",
"@types/chokidar": "^2.1.3",
"@types/fs-extra": "^9.0.1",
"@types/minimist": "^1.2.0",
"@types/mkdirp": "^1.0.1",
"@types/mocha": "github:whitecolor/mocha-types",
"@types/node": "^14.6.0",
"@types/rimraf": "^3.0.0",
"@types/tape": "^4.13.0",
"@types/touch": "^3.1.1",
"@types/ts-nameof": "^4.2.1",
Expand All @@ -77,10 +75,10 @@
"tap": "^5.2.0",
"tape": "^5.0.1",
"touch": "^1.0.0",
"ts-nameof": "^5.0.0",
"@typescript-nameof/nameof": "^0.0.10",
"tsconfig-paths": "^3.3.1",
"ttypescript": "^1.5.10",
"typescript": "^3.9.5"
"ts-patch": "^3.2.1",
"typescript": "^5.5.4"
},
"peerDependencies": {
"node-notifier": "*",
Expand Down
4 changes: 2 additions & 2 deletions src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as tsNode from 'ts-node'
import fs from 'fs'
import path from 'path'
import os from 'os'
import mkdirp from 'mkdirp'
import rimraf from 'rimraf'
import { mkdirp } from 'mkdirp'
import { rimraf } from 'rimraf'
import { resolveSync } from 'tsconfig'
import { Options } from './bin'
import { getCompiledPath } from './get-compiled-path'
Expand Down
2 changes: 1 addition & 1 deletion test/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function (program: ts.Program, pluginOptions: {}) {
return (sourceFile: ts.SourceFile) => {
function visitor(node: ts.Node): ts.Node {
if (ts.isStringLiteral(node)) {
return ts.createLiteral('transformed');
return ts.factory.createStringLiteral('transformed');
}
return ts.visitEachChild(node, visitor, ctx)
}
Expand Down
8 changes: 4 additions & 4 deletions test/tsnd.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ describe('ts-node-dev', function () {
const ps = spawnTsNodeDev(
[
`--respawn`,
`--compiler ttypescript`,
`--compiler ts-patch/compiler`,
`--compiler-options=${JSON.stringify(cOptions)}`,
`import-json`,
].join(' ')
Expand Down Expand Up @@ -224,11 +224,11 @@ describe('ts-node-dev', function () {
})

it('should allow to use custom TS transformers', async () => {
const cOptions = { plugins: [{ transform: 'ts-nameof', type: 'raw' }] }
const cOptions = { plugins: [{ transform: '@typescript-nameof/nameof' }] }
const ps = spawnTsNodeDev(
[
`--respawn`,
`--compiler ttypescript`,
`--compiler ts-patch/compiler`,
`--compiler-options=${JSON.stringify(cOptions)}`,
`nameof.ts`,
].join(' ')
Expand All @@ -243,7 +243,7 @@ describe('ts-node-dev', function () {
const ps = spawnTsNodeDev(
[
`--respawn`,
`--compiler ttypescript`,
`--compiler ts-patch/compiler`,
`--compiler-options=${JSON.stringify(cOptions)}`,
`to-transform.ts`,
].join(' ')
Expand Down
Loading