Skip to content

Commit

Permalink
feat(core): add glob support and semver range rule groups
Browse files Browse the repository at this point in the history
- Add support for matching package names with globs in version groups.
- Add support for packages having their own semver range rules.
- Add support for Yarn's `resolutions` field.
- Add support for Pnpm's `overrides` field.

BREAKING CHANGE:

Dependencies defined within the `resolutions` and `overrides` fields are
now processed by syncpack and are enabled by default. To exclude these
new fields you will need to define only the fields you do want to
process, either in your configuration file:

```json
{
  "dev": true,
  "peer": true,
  "prod": true
}
```

or via the command line:

```
syncpack list --dev --peer --prod
```
  • Loading branch information
JamieMason committed Jan 1, 2022
1 parent ad13680 commit 787757c
Show file tree
Hide file tree
Showing 107 changed files with 3,652 additions and 128,019 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.d.ts
15 changes: 8 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'import'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parserOptions: {
ecmaVersion: 6,
Expand All @@ -11,17 +11,18 @@ module.exports = {
node: true,
},
overrides: [
{
files: ['*.ts'],
rules: {
'@typescript-eslint/no-var-requires': 0
},
},
{
files: ['*.spec.ts'],
env: {
jest: true,
},
},
],
rules: {
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/consistent-type-imports': [
2,
{ prefer: 'type-imports' },
],
},
};
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
**/*.md
coverage
dist
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"arrowParens": "always",
"printWidth": 120,
"printWidth": 80,
"proseWrap": "always",
"singleQuote": true,
"trailingComma": "all"
Expand Down

0 comments on commit 787757c

Please sign in to comment.