redput 4.8.0 → 4.9.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.
package/ChangeLog
CHANGED
|
@@ -9,7 +9,9 @@ export const replace = () => ({
|
|
|
9
9
|
const [__aPath, __bPath] = path.get('elements');
|
|
10
10
|
const status = isStringLiteral(__a) ? __a.value : __aPath.toString();
|
|
11
11
|
|
|
12
|
-
const name = isStringLiteral(__b)
|
|
12
|
+
const name = isStringLiteral(__b)
|
|
13
|
+
? __b.value
|
|
14
|
+
|
|
13
15
|
: __bPath
|
|
14
16
|
.toString()
|
|
15
17
|
.replace(/\s/g, '') +
|
package/lib/run-rule/run-rule.js
CHANGED
|
@@ -2,6 +2,8 @@ import path from 'node:path';
|
|
|
2
2
|
import {putout} from 'putout';
|
|
3
3
|
import {compileRule} from '../compile-rule/compile-rule.js';
|
|
4
4
|
|
|
5
|
+
const {assign} = Object;
|
|
6
|
+
|
|
5
7
|
const noop = () => '';
|
|
6
8
|
|
|
7
9
|
export const runRule = (ruleSource, source) => {
|
|
@@ -10,7 +12,9 @@ export const runRule = (ruleSource, source) => {
|
|
|
10
12
|
if (name === 'path' || name === 'node:path')
|
|
11
13
|
return path;
|
|
12
14
|
|
|
13
|
-
return putout
|
|
15
|
+
return assign(putout, {
|
|
16
|
+
putout,
|
|
17
|
+
});
|
|
14
18
|
},
|
|
15
19
|
});
|
|
16
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redput",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
4
4
|
"description": "CLI tool to convert source from 🐊Putout Editor to files",
|
|
5
5
|
"main": "lib/redput.js",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
},
|
|
9
9
|
"exports": {
|
|
10
10
|
"./plugin/get-report": "./lib/get-report/plugin-get-report/index.js",
|
|
11
|
-
"./compile-rule":
|
|
11
|
+
"./compile-rule": {
|
|
12
|
+
"types": "./lib/compile-rule/compile-rule.d.ts",
|
|
13
|
+
"default": "./lib/compile-rule/compile-rule.js"
|
|
14
|
+
}
|
|
12
15
|
},
|
|
13
16
|
"type": "module",
|
|
14
17
|
"scripts": {
|
|
@@ -17,6 +20,7 @@
|
|
|
17
20
|
"lint:fresh": "madrun lint:fresh",
|
|
18
21
|
"fix:lint": "madrun fix:lint",
|
|
19
22
|
"test": "madrun test",
|
|
23
|
+
"test:dts": "madrun test:dts",
|
|
20
24
|
"watch:test": "madrun watch:test",
|
|
21
25
|
"watch:tape": "madrun watch:tape",
|
|
22
26
|
"watch:lint": "madrun watch:lint",
|
|
@@ -76,6 +80,7 @@
|
|
|
76
80
|
},
|
|
77
81
|
"devDependencies": {
|
|
78
82
|
"@putout/test": "^15.0.0",
|
|
83
|
+
"check-dts": "^1.0.0",
|
|
79
84
|
"eslint": "^10.0.0",
|
|
80
85
|
"eslint-plugin-putout": "^31.0.0",
|
|
81
86
|
"madrun": "^13.0.0",
|
|
@@ -83,7 +88,8 @@
|
|
|
83
88
|
"nodemon": "^3.0.1",
|
|
84
89
|
"redlint": "^6.0.0",
|
|
85
90
|
"superc8": "^12.2.4",
|
|
86
|
-
"supertape": "^13.0.0"
|
|
91
|
+
"supertape": "^13.0.0",
|
|
92
|
+
"typescript": "^6.0.0"
|
|
87
93
|
},
|
|
88
94
|
"publishConfig": {
|
|
89
95
|
"access": "public"
|