Skip to content

Commit

Permalink
Minor engineering updates
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Oct 19, 2023
1 parent abf1715 commit 150db9d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"sourceType": "module"
},
"extends": ["eslint:recommended", "prettier", "plugin:import/recommended"],
"ignorePatterns": ["/font-src/glyphs", "/font-src/meta", "/font-src/otl"],
"rules": {
"semi": ["error", "always"],
"no-var": "error",
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"main": "./font-src/index.js",
"scripts": {
"build": "verda -f verdafile.mjs",
"bump-ver": "node utility/update-package-json-version/index.mjs && npm install",
"clean": "verda -f verdafile.mjs clean"
"bump-ver": "node utility/update-package-json-version/index.mjs && npm install && node utility/generate-ttfa-ranges/index.mjs",
"clean": "verda -f verdafile.mjs clean",
"lint": "eslint . --ext .mjs"
},
"dependencies": {
"@iarna/toml": "^2.2.5",
Expand Down Expand Up @@ -35,4 +36,4 @@
"engines": {
"node": ">=16.0.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import fs from "fs";
import path from "path";
import url from "url";

import { ArrayUtil } from "../font-src/support/utils.mjs";
import { ArrayUtil } from "../../font-src/support/utils.mjs";

const __dirname = url.fileURLToPath(new URL(".", import.meta.url));

setImmediate(() => {
main().catch(e => {
Expand Down Expand Up @@ -45,7 +49,7 @@ async function main() {
}

await fs.promises.writeFile(
"font-src/generated/ttfa-ranges.mjs",
path.resolve(__dirname, "../../font-src/generated/ttfa-ranges.mjs"),
`/* eslint-disable */\n` +
`// Machine generated. Do not modify。\n` +
`export default ` +
Expand Down

0 comments on commit 150db9d

Please sign in to comment.