Skip to content

Commit ec6198f

Browse files
authored
Merge pull request #27 from amtrack/fix/esm
fix(pjson): use export instead of main
2 parents bd130ba + 55db1c1 commit ec6198f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

3-
import { readFileSync } from "fs";
3+
import { readFileSync } from "node:fs";
44
import { filterApexLogs } from "./index.js";
55

66
const input = readFileSync(0, "utf8");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "apex-log-filter",
33
"version": "0.0.0-development",
44
"description": "CLI for filtering USER_DEBUG output from Salesforce Anonymous Apex execution logs",
5-
"main": "index.js",
5+
"exports": "./index.js",
66
"type": "module",
77
"scripts": {
88
"test": "bats *.bats"

0 commit comments

Comments
 (0)