Skip to content

Commit

Permalink
Use new utils
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Aug 20, 2023
1 parent f00ad6a commit 0cb5b5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ function isNonBareSpecifier(importSource) {
}

function normalizeFilePath(filePath) {
return TemplatePath.addLeadingDotSlash(path.relative(".", filePath));
return TemplatePath.standardizeFilePath(path.relative(".", filePath));
}

function normalizeImportSourceToFilePath(filePath, source) {
let { dir } = path.parse(filePath);
let normalized = path.join(dir, source);
return TemplatePath.addLeadingDotSlash(path.relative(".", normalized));
return TemplatePath.standardizeFilePath(path.relative(".", normalized));
}

async function findByContents(contents, filePath, alreadyParsedSet) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"license": "MIT",
"dependencies": {
"@11ty/eleventy-utils": "^1.0.1",
"@11ty/eleventy-utils": "^1.0.2",
"acorn": "^8.10.0",
"dependency-graph": "^0.11.0",
"normalize-path": "^3.0.0"
Expand Down

0 comments on commit 0cb5b5a

Please sign in to comment.