Skip to content

Commit

Permalink
Merge pull request #226 from bhouston/cross-platform-source-maps
Browse files Browse the repository at this point in the history
cross-platform source-map support for node.js apps.
  • Loading branch information
bhouston committed Jul 23, 2023
2 parents 41a3627 + b5c05d6 commit da3f143
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
3 changes: 2 additions & 1 deletion apps/exec-graph/bin/cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node --enable-source-maps
#!/usr/bin/env node
import 'source-map-support/register.js'; // required for cross platform source map support, other options didn't work across OSes.

import { main } from '../dist/index.js';

Expand Down
1 change: 0 additions & 1 deletion apps/exec-graph/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ async function execGraph({
if (programOptions.logLevel) {
Logger.logLevel = programOptions.logLevel as LogLevel;
}

const graphJsonPath = jsonPattern;
Logger.verbose(`reading behavior graph: ${graphJsonPath}`);
const textFile = await fs.readFile(graphJsonPath);
Expand Down
3 changes: 2 additions & 1 deletion apps/export-node-spec/bin/cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node --enable-source-maps
#!/usr/bin/env node
import 'source-map-support/register.js'; // required for cross platform source map support, other options didn't work across OSes.

import { main } from '../dist/index.js';

Expand Down
22 changes: 15 additions & 7 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"commander": "^9.4.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"source-map-support": "^0.5.21",
"vite": "^3.2.4"
},
"devDependencies": {
Expand Down

0 comments on commit da3f143

Please sign in to comment.