Skip to content

Commit

Permalink
fix: Fix typescript bundler mode
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Oct 18, 2024
1 parent be7ad13 commit c74fd8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/ts-paths.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {resolve, join} = require('path');
const {resolve} = require('path');
const {readFileSync} = require('fs');
const {sync: glob} = require('glob');
const normalize = require('normalize-path');
Expand Down
2 changes: 1 addition & 1 deletion src/services/metadata/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CARRIAGE_RETURN} from '~/constants';
import {CARRIAGE_RETURN} from '../../constants';

// IMO, we should just always apply this at the end of the whole processing pipeline,
// not when dumping meta/front matter
Expand Down
3 changes: 2 additions & 1 deletion tests/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"module": "NodeNext",
"esModuleInterop": true,
"paths": {
"*": ["../src/*"]
"*": ["../src/*"],
"~/*": ["../src/*"]
},
"types": ["node", "jest"]
}
Expand Down

0 comments on commit c74fd8d

Please sign in to comment.