@putout/plugin-package-json 10.4.1 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,8 +21,8 @@ const {
21
21
 
22
22
  export const report = () => `Avoid exports with missing files`;
23
23
 
24
- export const fix = (file, {key, ast, source}) => {
25
- transform(ast, source, {
24
+ export const fix = (file, {key, ast}) => {
25
+ transform(ast, {
26
26
  rules: {
27
27
  'remove-keys': ['on', {
28
28
  keys: [key],
@@ -48,7 +48,7 @@ export const scan = (root, {push, trackFile}) => {
48
48
  for (const file of trackFile(root, 'package.json')) {
49
49
  const source = toJS(readFileContent(file));
50
50
  const ast = parse(source);
51
- const places = findPlaces(ast, source, {
51
+ const places = findPlaces(ast, {
52
52
  plugins: [
53
53
  ['find-keys', findKeys],
54
54
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-package-json",
3
- "version": "10.4.1",
3
+ "version": "11.0.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin for package.json",
@@ -34,14 +34,14 @@
34
34
  "@putout/eslint-flat": "^4.0.0",
35
35
  "@putout/test": "^15.0.0",
36
36
  "c8": "^10.0.0",
37
- "eslint": "^10.0.0-alpha.0",
37
+ "eslint": "^10.0.0",
38
38
  "eslint-plugin-n": "^17.0.0",
39
- "eslint-plugin-putout": "^30.0.0",
40
- "madrun": "^12.0.0",
39
+ "eslint-plugin-putout": "^31.0.0",
40
+ "madrun": "^13.0.0",
41
41
  "nodemon": "^3.0.1"
42
42
  },
43
43
  "peerDependencies": {
44
- "putout": ">=41"
44
+ "putout": ">=42"
45
45
  },
46
46
  "license": "MIT",
47
47
  "engines": {