Skip to content

Commit

Permalink
chore(deps): upgrade synckit v0.3.0 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jul 13, 2021
1 parent 9207623 commit 8f00e33
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 116 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-knives-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-markup": patch
---

chore(deps): upgrade synckit v0.3.0
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@
"@changesets/changelog-github": "^0.4.0",
"@changesets/cli": "^2.16.0",
"@markuplint/rule-textlint": "^0.2.0-alpha.1",
"@types/eslint": "^7.2.14",
"@types/eslint": "^7.28.0",
"@types/htmlhint": "^0.9.3",
"@types/jest": "^26.0.24",
"@types/node": "^16.3.1",
"eslint-plugin-mdx": "1.13.0",
"rimraf": "^3.0.2",
"textlint-rule-max-comma": "^2.0.2",
"ts-jest": "^27.0.3",
"ts-node": "^10.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/markup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"eslint-plugin-utils": "^0.1.0",
"markuplint": "^1.10.1",
"markuplint-sync": "^0.3.2",
"synckit": "^0.2.0",
"synckit": "^0.3.4",
"tslib": "^2.3.0"
},
"publishConfig": {
Expand Down
4 changes: 3 additions & 1 deletion packages/markup/src/rules/markup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import { createSyncFn } from 'synckit'

import { getPhysicalFilename, resolveConfig } from '../helpers'

const workerPath = require.resolve('../worker')

// call `creatSyncFn` lazily for performance, it is already cached inside, related #31
const _ = {
get execSync() {
return createSyncFn<typeof execAsync>(require.resolve('../worker'))
return createSyncFn<typeof execAsync>(workerPath)
},
}

Expand Down
Loading

0 comments on commit 8f00e33

Please sign in to comment.