├── .eslintrc ├── .github └── ISSUE_TEMPLATE.md ├── .gitignore ├── .node-dev.json ├── .travis.yml ├── .vscode └── tasks.json ├── .yalcignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── docker-compose.yml ├── icons ├── node_error.png └── node_info.png ├── package.json ├── src ├── bin.ts ├── cfg.ts ├── check-file-exists.ts ├── child-require-hook.ts ├── compiler.ts ├── dedupe.ts ├── get-compiled-path.ts ├── get-cwd.ts ├── hook.ts ├── index.ts ├── ipc.ts ├── log.ts ├── notify.ts ├── resolveMain.ts └── wrap.ts ├── test ├── fixture │ ├── .rcfile │ ├── add-req.ts │ ├── dep-ts-error.ts │ ├── dep.ts │ ├── dir-test │ │ ├── imported.js │ │ ├── index.ts │ │ └── tsconfig.json │ ├── file.json │ ├── folder │ │ └── some-file │ ├── import-json.ts │ ├── js-module.js │ ├── nameof.ts │ ├── node_modules │ │ └── package │ │ │ ├── index.js │ │ │ └── node_modules │ │ │ └── level2-package │ │ │ └── index.js │ ├── not-found │ │ ├── js-with-not-found.js │ │ └── with-not-found-js.ts │ ├── prefer │ │ ├── prefer-dep.js │ │ ├── prefer-dep.ts │ │ ├── prefer.js │ │ └── prefer.ts │ ├── req-package.ts │ ├── simple.ts │ ├── to-transform.ts │ ├── uncaught-handler.ts │ ├── with-error.ts │ └── with-not-found.ts ├── manual │ ├── add-require-2.ts │ ├── add-require.js │ ├── big.ts │ ├── dep-interface.ts │ ├── dep.ts │ ├── run.ts │ └── test-script.ts ├── spawn.ts ├── transformer.ts └── tsnd.test.ts ├── tsconfig.build.json ├── tsconfig.json └── yarn.lock /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["@whitecolor/eslint-config"] 3 | } 4 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/.gitignore -------------------------------------------------------------------------------- /.node-dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "clear": true 3 | } -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/.travis.yml -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /.yalcignore: -------------------------------------------------------------------------------- 1 | README.md -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /icons/node_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/icons/node_error.png -------------------------------------------------------------------------------- /icons/node_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/icons/node_info.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/package.json -------------------------------------------------------------------------------- /src/bin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/bin.ts -------------------------------------------------------------------------------- /src/cfg.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/cfg.ts -------------------------------------------------------------------------------- /src/check-file-exists.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/check-file-exists.ts -------------------------------------------------------------------------------- /src/child-require-hook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/child-require-hook.ts -------------------------------------------------------------------------------- /src/compiler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/compiler.ts -------------------------------------------------------------------------------- /src/dedupe.ts: -------------------------------------------------------------------------------- 1 | require('dynamic-dedupe').activate(); 2 | -------------------------------------------------------------------------------- /src/get-compiled-path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/get-compiled-path.ts -------------------------------------------------------------------------------- /src/get-cwd.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/get-cwd.ts -------------------------------------------------------------------------------- /src/hook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/hook.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/ipc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/ipc.ts -------------------------------------------------------------------------------- /src/log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/log.ts -------------------------------------------------------------------------------- /src/notify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/notify.ts -------------------------------------------------------------------------------- /src/resolveMain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/resolveMain.ts -------------------------------------------------------------------------------- /src/wrap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/src/wrap.ts -------------------------------------------------------------------------------- /test/fixture/.rcfile: -------------------------------------------------------------------------------- 1 | console.log('NO EXT') 2 | 3 | exports.x = 1 -------------------------------------------------------------------------------- /test/fixture/add-req.ts: -------------------------------------------------------------------------------- 1 | console.log('added --require') 2 | -------------------------------------------------------------------------------- /test/fixture/dep-ts-error.ts: -------------------------------------------------------------------------------- 1 | export const fn = (x: number) => { 2 | return 'v1' 3 | } 4 | 5 | -------------------------------------------------------------------------------- /test/fixture/dep.ts: -------------------------------------------------------------------------------- 1 | export const fn = (x: number) => { 2 | return 'v1' 3 | } 4 | 5 | -------------------------------------------------------------------------------- /test/fixture/dir-test/imported.js: -------------------------------------------------------------------------------- 1 | module.exports.hello = 'world' 2 | ; 3 | -------------------------------------------------------------------------------- /test/fixture/dir-test/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/fixture/dir-test/index.ts -------------------------------------------------------------------------------- /test/fixture/dir-test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/fixture/dir-test/tsconfig.json -------------------------------------------------------------------------------- /test/fixture/file.json: -------------------------------------------------------------------------------- 1 | { 2 | "file": "json" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixture/folder/some-file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixture/import-json.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/fixture/import-json.ts -------------------------------------------------------------------------------- /test/fixture/js-module.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/fixture/js-module.js -------------------------------------------------------------------------------- /test/fixture/nameof.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/fixture/nameof.ts -------------------------------------------------------------------------------- /test/fixture/node_modules/package/index.js: -------------------------------------------------------------------------------- 1 | require('level2-package') 2 | console.log('PACKAGE FROM NODE_MODULES') -------------------------------------------------------------------------------- /test/fixture/node_modules/package/node_modules/level2-package/index.js: -------------------------------------------------------------------------------- 1 | console.log('PACKAGE FROM LEVEL2 NODE_MODULES') -------------------------------------------------------------------------------- /test/fixture/not-found/js-with-not-found.js: -------------------------------------------------------------------------------- 1 | require('./not-found-js') -------------------------------------------------------------------------------- /test/fixture/not-found/with-not-found-js.ts: -------------------------------------------------------------------------------- 1 | import { fn } from './not-found-js' 2 | 3 | console.log(fn(1)) 4 | -------------------------------------------------------------------------------- /test/fixture/prefer/prefer-dep.js: -------------------------------------------------------------------------------- 1 | console.log('PREFER DEP JS') 2 | -------------------------------------------------------------------------------- /test/fixture/prefer/prefer-dep.ts: -------------------------------------------------------------------------------- 1 | console.log('PREFER DEP TS') -------------------------------------------------------------------------------- /test/fixture/prefer/prefer.js: -------------------------------------------------------------------------------- 1 | require('./prefer-dep') 2 | console.log('PREFER JS') -------------------------------------------------------------------------------- /test/fixture/prefer/prefer.ts: -------------------------------------------------------------------------------- 1 | import './prefer-dep' 2 | console.log('PREFER TS') -------------------------------------------------------------------------------- /test/fixture/req-package.ts: -------------------------------------------------------------------------------- 1 | require('package') -------------------------------------------------------------------------------- /test/fixture/simple.ts: -------------------------------------------------------------------------------- 1 | import { fn } from './dep' 2 | 3 | console.log(fn(1)) 4 | -------------------------------------------------------------------------------- /test/fixture/to-transform.ts: -------------------------------------------------------------------------------- 1 | console.log("something") -------------------------------------------------------------------------------- /test/fixture/uncaught-handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/fixture/uncaught-handler.ts -------------------------------------------------------------------------------- /test/fixture/with-error.ts: -------------------------------------------------------------------------------- 1 | import { fn } from './dep-ts-error' 2 | 3 | console.log(fn('1')) 4 | -------------------------------------------------------------------------------- /test/fixture/with-not-found.ts: -------------------------------------------------------------------------------- 1 | import { fn } from './not-found' 2 | 3 | console.log(fn(1)) 4 | -------------------------------------------------------------------------------- /test/manual/add-require-2.ts: -------------------------------------------------------------------------------- 1 | console.log('second node --require') 2 | -------------------------------------------------------------------------------- /test/manual/add-require.js: -------------------------------------------------------------------------------- 1 | console.log('additional node --require') -------------------------------------------------------------------------------- /test/manual/big.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/manual/big.ts -------------------------------------------------------------------------------- /test/manual/dep-interface.ts: -------------------------------------------------------------------------------- 1 | export interface A { 2 | //a: string 3 | } 4 | -------------------------------------------------------------------------------- /test/manual/dep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/manual/dep.ts -------------------------------------------------------------------------------- /test/manual/run.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/manual/run.ts -------------------------------------------------------------------------------- /test/manual/test-script.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/manual/test-script.ts -------------------------------------------------------------------------------- /test/spawn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/spawn.ts -------------------------------------------------------------------------------- /test/transformer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/transformer.ts -------------------------------------------------------------------------------- /test/tsnd.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/test/tsnd.test.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wclr/ts-node-dev/HEAD/yarn.lock --------------------------------------------------------------------------------