@dotcom-tool-kit/prettier 3.0.0 → 3.1.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/lib/tasks/prettier.js +1 -1
- package/package.json +9 -5
package/lib/tasks/prettier.js
CHANGED
|
@@ -44,7 +44,7 @@ class Prettier extends types_1.Task {
|
|
|
44
44
|
}
|
|
45
45
|
async run(files) {
|
|
46
46
|
try {
|
|
47
|
-
const filepaths = await (0, fast_glob_1.default)(files
|
|
47
|
+
const filepaths = await (0, fast_glob_1.default)(files ?? this.options.files);
|
|
48
48
|
for (const filepath of filepaths) {
|
|
49
49
|
const { ignored } = await prettier_1.default.getFileInfo(filepath);
|
|
50
50
|
if (!ignored) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcom-tool-kit/prettier",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib",
|
|
6
6
|
"scripts": {
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"author": "FT.com Platforms Team <platforms-team.customer-products@ft.com>",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dotcom-tool-kit/error": "^3.
|
|
14
|
-
"@dotcom-tool-kit/logger": "^3.
|
|
15
|
-
"@dotcom-tool-kit/package-json-hook": "^4.
|
|
16
|
-
"@dotcom-tool-kit/types": "^3.
|
|
13
|
+
"@dotcom-tool-kit/error": "^3.1.0",
|
|
14
|
+
"@dotcom-tool-kit/logger": "^3.1.0",
|
|
15
|
+
"@dotcom-tool-kit/package-json-hook": "^4.1.0",
|
|
16
|
+
"@dotcom-tool-kit/types": "^3.2.0",
|
|
17
17
|
"fast-glob": "^3.2.7",
|
|
18
18
|
"hook-std": "^2.0.0",
|
|
19
19
|
"prettier": "^2.2.1",
|
|
@@ -41,5 +41,9 @@
|
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"dotcom-tool-kit": "3.x"
|
|
44
|
+
},
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": "16.x || 18.x",
|
|
47
|
+
"npm": "7.x || 8.x || 9.x"
|
|
44
48
|
}
|
|
45
49
|
}
|