liquidsoap-prettier 1.7.0 → 1.7.1
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/package.json +8 -8
- package/scripts/download-parser.js +0 -0
- package/src/index.js +2 -0
package/package.json
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "liquidsoap-prettier",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Liquidsoap language prettier CLI and plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"liquidsoap-prettier": "src/cli.js"
|
|
9
9
|
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build:web": "webpack --config webpack.web.cjs",
|
|
12
|
+
"release": "dune build && npm run build:web && npm publish",
|
|
13
|
+
"dev:prepare": "node ./scripts/download-parser.js",
|
|
14
|
+
"liquidsoap-prettier": "node ./src/cli.js"
|
|
15
|
+
},
|
|
10
16
|
"prettier": {
|
|
11
17
|
"plugins": [
|
|
12
18
|
"./src/index.js"
|
|
@@ -28,11 +34,5 @@
|
|
|
28
34
|
"tar-fs": "^3.0.6",
|
|
29
35
|
"webpack": "^5.89.0",
|
|
30
36
|
"webpack-cli": "^5.1.4"
|
|
31
|
-
},
|
|
32
|
-
"scripts": {
|
|
33
|
-
"build:web": "webpack --config webpack.web.cjs",
|
|
34
|
-
"release": "dune build && npm run build:web && npm publish",
|
|
35
|
-
"dev:prepare": "node ./scripts/download-parser.js",
|
|
36
|
-
"liquidsoap-prettier": "node ./src/cli.js"
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|
|
File without changes
|
package/src/index.js
CHANGED
|
@@ -220,6 +220,8 @@ const print = (path, options, print) => {
|
|
|
220
220
|
];
|
|
221
221
|
case "list":
|
|
222
222
|
return group(["[", indent([softline, print("value")]), softline, "]"]);
|
|
223
|
+
case "ref":
|
|
224
|
+
return group(["ref", "(", print("value"), ")"]);
|
|
223
225
|
case "json_object":
|
|
224
226
|
return [
|
|
225
227
|
"[",
|