Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed May 1, 2022
1 parent bea6e66 commit faea240
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
],
},
{
"name": "Debug 2",
"name": "Debug Example: running a test fixture against local ts-node/esm loader",
"type": "pwa-node",
"request": "launch",
"cwd": "${workspaceFolder}/tests/esm",
"runtimeArgs": ["--loader", "ts-node/esm"],
"runtimeArgs": ["--loader", "../../ts-node/esm"],
"program": "throw error.ts",
"outputCapture": "std",
"skipFiles": [
Expand Down
16 changes: 5 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
}
},
"dependencies": {
"@cspotcode/source-map-support": "git+https://github.com/cspotcode/node-source-map-support.git#trace-mapping",
"@cspotcode/source-map-support": "^0.8.0",
"@tsconfig/node10": "^1.0.7",
"@tsconfig/node12": "^1.0.7",
"@tsconfig/node14": "^1.0.0",
Expand All @@ -168,7 +168,6 @@
"create-require": "^1.1.0",
"diff": "^4.0.1",
"make-error": "^1.1.1",
"source-map-support-old": "npm:@cspotcode/source-map-support@^0.7.0",
"v8-compile-cache-lib": "^3.0.1",
"yn": "3.1.1"
},
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,6 @@ export function createFromPreloadedConfig(
function installSourceMapSupport() {
const sourceMapSupport =
require('@cspotcode/source-map-support') as typeof _sourceMapSupport;
// require('source-map-support-old') as typeof _sourceMapSupport;
sourceMapSupport.install({
environment: 'node',
retrieveFile(pathOrUrl: string) {
Expand Down
1 change: 0 additions & 1 deletion src/test.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/test/esm-loader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ test.suite('esm', (test) => {
cwd: join(TEST_DIR, './esm'),
}
);
t.log(stdout);
t.log(stderr);
expect(err).not.toBe(null);
const expectedModuleUrl = pathToFileURL(
join(TEST_DIR, './esm/throw error.ts')
Expand Down

0 comments on commit faea240

Please sign in to comment.