Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 15, 2023
1 parent cc8009b commit 0143f52
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
5 changes: 3 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const ignore = new Set([
'zone'
])

// @ts-expect-error: types are wrong?
visit(fromXml(text), 'element', onelement)

await fs.writeFile(
Expand Down Expand Up @@ -240,8 +241,8 @@ function onelement(node) {
function clean(value) {
return String(value || '')
.toLowerCase()
.replace(/_/g, '-')
.replace(/\s+/g, ' ')
.replaceAll('_', '-')
.replaceAll(/\s+/g, ' ')
.trim()
.split(' ')
}
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,26 @@
"bcp-47-match": "^2.0.0"
},
"devDependencies": {
"@types/node": "^18.0.0",
"@types/node": "^20.0.0",
"@types/node-fetch": "^3.0.0",
"@types/xast": "^1.0.0",
"c8": "^7.0.0",
"@types/xast": "^2.0.0",
"c8": "^8.0.0",
"cldr-core": "^42.0.0",
"node-fetch": "^3.0.0",
"prettier": "^2.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"unist-util-visit": "^4.0.0",
"xast-util-from-xml": "^2.0.0",
"xo": "^0.53.0"
"typescript": "^5.0.0",
"unist-util-visit": "^5.0.0",
"xast-util-from-xml": "^3.0.0",
"xo": "^0.55.0"
},
"scripts": {
"prepack": "npm run generate && npm run build && npm run format",
"generate": "node --conditions development build.js",
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
"test-api": "node --conditions development test.js",
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
"test": "npm run generate && npm run build && npm run format && npm run test-coverage"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"emitDeclarationOnly": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es2020"],
"lib": ["es2022"],
"module": "node16",
"newLine": "lf",
"skipLibCheck": true,
"strict": true,
"target": "es2020"
"target": "es2022"
}
}

0 comments on commit 0143f52

Please sign in to comment.