Removed explicit use of ts-node (#1125)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* Remove explicit use of ts-node, and dependency. Speed tests. * Fix typo
authored by John Gee · committed by GitHub · parent 9de0968 · Browse files · 3 files·+16 added−44 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+16 added−44 removed
- tests:+4 added−2 removed
- other:+12 added−42 removed
Provenance
- Commit
808d4bc- Tree
e31b084- Author
John Gee <john@ruru.gen.nz>- Committer
GitHub <noreply@github.com>- Parent
9de0968
3 files changed+16 added−44 removed
modified:tests/command.executableSubcommand.lookup.test.js+4 added-2 removed
87 unmodified lines88899091929293949495969798991007 unmodified lines87 unmodified lines });});
test('when subcommand suffix is .ts then lookup succeeds', (done) => { jest.setTimeout(20000); // Extend timeout for GitHub Actions // We support looking for ts files for ts-node in particular, but don't need to test ts-node itself. // The program and the subcommand `pm-install.ts` are both plain JavaScript code. const binLinkTs = path.join(__dirname, 'fixtures-ts', 'pm.ts'); childProcess.execFile('node', ['-r', 'ts-node/register', binLinkTs, 'install'], function(_error, stdout, stderr) { // childProcess.execFile('node', ['-r', 'ts-node/register', binLinkTs, 'install'], function(_error, stdout, stderr) { childProcess.execFile('node', [binLinkTs, 'install'], function(_error, stdout, stderr) { expect(stdout).toBe('install\n'); done(); });});7 unmodified linesmodified:package-lock.json+12 added-41 removed
598 unmodified lines599 "micromatch": "^3.1.4",600 "normalize-path": "^2.1.1"601 }602 },603- "arg": {604- "version": "4.1.1",605- "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.1.tgz",606- "integrity": "sha512-SlmP3fEA88MBv0PypnXZ8ZfJhwmDeIE3SP71j37AiXQBXYosPV0x6uISAaHYSlSVhmHOVkomen0tbGk6Anlebw==",607- "dev": true608- },603 "argparse": {604 "version": "1.0.10",605 "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",606 "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",464 unmodified lines1071 "commander": {1072 "version": "2.20.3",1073 "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",1074 "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",1075+ "dev": true,1076 "optional": true1077 },1078 "component-emitter": {1079 "version": "1.3.0",219 unmodified lines1299 "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz",1300 "integrity": "sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=",1301 "dev": true1302 },1308- "diff": {1309- "version": "4.0.1",1310- "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz",1311- "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==",1312- "dev": true1313- },1303 "diff-sequences": {1304 "version": "24.9.0",1305 "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-24.9.0.tgz",1306 "integrity": "sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew==",1595 unmodified lines2902 "handlebars": {2903 "version": "4.5.3",2904 "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.5.3.tgz",2905 "integrity": "sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==",2906+ "dev": true,2907 "requires": {2908 "neo-async": "^2.6.0",2909 "optimist": "^0.6.1",2910 "source-map": "^0.6.1",1153 unmodified lines4064 "dev": true4065 }4066 }4067 },4078- "make-error": {4079- "version": "1.3.5",4080- "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz",4081- "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==",4082- "dev": true4083- },4068 "makeerror": {4069 "version": "1.0.11",4070 "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz",4071 "integrity": "sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=",76 unmodified lines4148 },4149 "minimist": {4150 "version": "0.0.8",4151 "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",4168- "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="4152+ "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",4153+ "dev": true4154 },4155 "mixin-deep": {4156 "version": "1.3.2",4157 "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz",70 unmodified lines4228 },4229 "neo-async": {4230 "version": "2.6.1",4231 "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz",4247- "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw=="4232+ "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==",4233+ "dev": true4234 },4235 "nice-try": {4236 "version": "1.0.5",4237 "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",229 unmodified lines4467 "optimist": {4468 "version": "0.6.1",4469 "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz",4470 "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=",4471+ "dev": true,4472 "requires": {4473 "minimist": "~0.0.1",4474 "wordwrap": "~0.0.2"4475 },4476 "dependencies": {4477 "wordwrap": {4478 "version": "0.0.3",4479 "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz",4493- "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc="4480+ "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=",4481+ "dev": true4482 }4483 }4484 },4485 "optionator": {798 unmodified lines5284 },5285 "source-map": {5286 "version": "0.6.1",5287 "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",5300- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="5288+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",5289+ "dev": true5290 },5291 "source-map-resolve": {5292 "version": "0.5.2",5293 "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz",562 unmodified lines5856 "requires": {5857 "punycode": "^2.1.0"5858 }5859 },5871- "ts-node": {5872- "version": "8.5.2",5873- "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.5.2.tgz",5874- "integrity": "sha512-W1DK/a6BGoV/D4x/SXXm6TSQx6q3blECUzd5TN+j56YEMX3yPVMpHsICLedUw3DvGF3aTQ8hfdR9AKMaHjIi+A==",5875- "dev": true,5876- "requires": {5877- "arg": "^4.1.0",5878- "diff": "^4.0.1",5879- "make-error": "^1.1.1",5880- "source-map-support": "^0.5.6",5881- "yn": "^3.0.0"5882- }5883- },5860 "tslib": {5861 "version": "1.10.0",5862 "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",5863 "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==",38 unmodified lines5902 "uglify-js": {5903 "version": "3.6.9",5904 "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.9.tgz",5905 "integrity": "sha512-pcnnhaoG6RtrvHJ1dFncAe8Od6Nuy30oaJ82ts6//sGSXOP5UjBMEthiProjXmMNHOfd93sqlkztifFMcb+4yw==",5906+ "dev": true,5907 "optional": true,5908 "requires": {5909 "commander": "~2.20.3",5910 "source-map": "~0.6.1"314 unmodified lines6225 "requires": {6226 "camelcase": "^5.0.0",6227 "decamelize": "^1.2.0"6228 }6252- },6253- "yn": {6254- "version": "3.1.1",6255- "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",6256- "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",6257- "dev": true6229 }6230 }6231 }modified:package.json-1 removed
30 unmodified lines3132333435353637383 unmodified lines30 unmodified lines "eslint": "^6.7.0", "eslint-plugin-jest": "^22.21.0", "jest": "^24.8.0", "standard": "^14.3.1", "ts-node": "^8.5.2", "typescript": "^3.7.2" }, "typings": "typings/index.d.ts", "engines": {3 unmodified lines