Skip to content

Commit

Permalink
chore: update dependencies, change json import syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberalien committed Sep 1, 2024
1 parent 3d8d54b commit 7ea29e2
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 52 deletions.
10 changes: 5 additions & 5 deletions @iconify/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"description": "Collection of functions for cleaning up and parsing SVG for Iconify project",
"author": "Vjacheslav Trushkin",
"version": "4.0.5",
"version": "4.0.6",
"license": "MIT",
"bugs": "https://github.com/iconify/tools/issues",
"homepage": "https://github.com/iconify/tools",
Expand All @@ -26,9 +26,9 @@
},
"dependencies": {
"@iconify/types": "^2.0.0",
"@iconify/utils": "^2.1.29",
"@iconify/utils": "^2.1.32",
"@types/tar": "^6.1.13",
"axios": "^1.7.3",
"axios": "^1.7.7",
"cheerio": "1.0.0",
"domhandler": "^5.0.3",
"extract-zip": "^2.0.1",
Expand All @@ -39,7 +39,7 @@
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^20.14.14",
"@types/node": "^20.16.2",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"cross-env": "^7.0.3",
Expand All @@ -49,7 +49,7 @@
"jest": "^29.7.0",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"ts-jest": "^29.2.4",
"ts-jest": "^29.2.5",
"typescript": "^5.5.4",
"unbuild": "^2.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion @iconify/tools/src/export/json-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export async function exportJSONPackage(
// Import data from JSON file
cjsImports.push(`const ${attr} = require('${relativeFile}');`);
mjsImports.push(
`import ${attr} from '${relativeFile}' assert { type: 'json' };`
`import ${attr} from '${relativeFile}' with { type: 'json' };`
);

// Add data to package.json
Expand Down
Loading

0 comments on commit 7ea29e2

Please sign in to comment.