Skip to content

Commit

Permalink
chore: replace @pkgr/utils with lite @pkgr/core
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 29, 2023
1 parent c0302f0 commit 0c32e77
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/lint-staged/base.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { preferPrettier } = require('@1stg/config')
const { isPkgAvailable } = require('@pkgr/utils')
const { isPkgAvailable } = require('@pkgr/core')

Check warning on line 2 in packages/lint-staged/base.js

View check run for this annotation

Codecov / codecov/patch

packages/lint-staged/base.js#L2

Added line #L2 was not covered by tests

const isEslintAvailable = isPkgAvailable('eslint')
const isStylelintAvailable = isPkgAvailable('stylelint')
Expand Down
2 changes: 1 addition & 1 deletion packages/lint-staged/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@1stg/config": "^0.2.2",
"@1stg/prettier-config": "^3.9.2",
"@1stg/tsconfig": "^2.3.3",
"@pkgr/utils": "^3.0.0",
"@pkgr/core": "^0.1.0",
"prettier": "^3.1.1"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-config/_overrides.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { preferPrettier } = require('@1stg/config')
const { isPkgAvailable } = require('@pkgr/utils')
const { isPkgAvailable } = require('@pkgr/core')

Check warning on line 2 in packages/stylelint-config/_overrides.js

View check run for this annotation

Codecov / codecov/patch

packages/stylelint-config/_overrides.js#L2

Added line #L2 was not covered by tests

const disablePrettierOptions = !preferPrettier &&
isPkgAvailable('eslint') && {
Expand Down
5 changes: 4 additions & 1 deletion packages/stylelint-config/base.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const { preferPrettier } = require('@1stg/config')
const { isAngularAvailable, isVueAvailable } = require('@pkgr/utils')
const { isPkgAvailable } = require('@pkgr/core')

Check warning on line 2 in packages/stylelint-config/base.js

View check run for this annotation

Codecov / codecov/patch

packages/stylelint-config/base.js#L2

Added line #L2 was not covered by tests

const isAngularAvailable = isPkgAvailable('@angular/core')
const isVueAvailable = isPkgAvailable('vue')

Check warning on line 5 in packages/stylelint-config/base.js

View check run for this annotation

Codecov / codecov/patch

packages/stylelint-config/base.js#L4-L5

Added lines #L4 - L5 were not covered by tests

module.exports = {
extends: [
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@1stg/config": "^0.2.2",
"@pkgr/utils": "^3.0.0",
"@pkgr/core": "^0.1.0",
"postcss-html": "^1.5.0",
"postcss-less": "^6.0.0",
"postcss-markdown": "^1.2.0",
Expand Down

0 comments on commit 0c32e77

Please # to comment.