Skip to content

Commit

Permalink
switch to smol-toml
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Jun 1, 2024
1 parent 1718824 commit b7b8094
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ async function main() {
if (mode === "npm") {
pkg = JSON.parse(pkgStrs[mode]);
} else {
pkg = (await import("@iarna/toml/parse-string.js")).default(pkgStrs[mode]);
pkg = (await import("smol-toml")).parse(pkgStrs[mode]);
}
} catch (err) {
throw new Error(`Error parsing ${file}: ${(err as Error).message}`);
Expand Down
18 changes: 11 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"node": ">=18"
},
"devDependencies": {
"@iarna/toml": "2.2.5",
"@types/hosted-git-info": "3.0.5",
"@types/iarna__toml": "2.0.5",
"@types/minimist": "1.2.5",
Expand All @@ -40,6 +39,7 @@
"registry-auth-token": "4.2.2",
"restana": "4.9.9",
"semver": "7.3.8",
"smol-toml": "1.2.0",
"supports-color": "9.4.0",
"text-table": "0.2.0",
"timerel": "5.8.0",
Expand Down

0 comments on commit b7b8094

Please sign in to comment.