@dotcom-tool-kit/prettier 1.2.0 → 1.3.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/lib/tasks/prettier.d.ts +1 -1
- package/lib/tasks/prettier.d.ts.map +1 -1
- package/lib/tasks/prettier.js +2 -2
- package/package.json +10 -10
package/lib/tasks/prettier.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PrettierOptions, PrettierSchema } from '@dotcom-tool-kit/types/lib/schema/prettier';
|
|
2
|
-
import { Task } from '@dotcom-tool-kit/
|
|
2
|
+
import { Task } from '@dotcom-tool-kit/types';
|
|
3
3
|
export default class Prettier extends Task<typeof PrettierSchema> {
|
|
4
4
|
static description: string;
|
|
5
5
|
static defaultOptions: PrettierOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/tasks/prettier.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAG5F,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/tasks/prettier.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAG5F,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAG7C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAI,CAAC,OAAO,cAAc,CAAC;IAC/D,MAAM,CAAC,WAAW,SAAK;IAEvB,MAAM,CAAC,cAAc,EAAE,eAAe,CASrC;IAEK,GAAG,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAiB3C"}
|
package/lib/tasks/prettier.js
CHANGED
|
@@ -4,9 +4,9 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const prettier_1 = (0, tslib_1.__importDefault)(require("prettier"));
|
|
5
5
|
const fs_1 = require("fs");
|
|
6
6
|
const fast_glob_1 = (0, tslib_1.__importDefault)(require("fast-glob"));
|
|
7
|
-
const
|
|
7
|
+
const types_1 = require("@dotcom-tool-kit/types");
|
|
8
8
|
const error_1 = require("@dotcom-tool-kit/error");
|
|
9
|
-
class Prettier extends
|
|
9
|
+
class Prettier extends types_1.Task {
|
|
10
10
|
async run(files) {
|
|
11
11
|
try {
|
|
12
12
|
const filepaths = await (0, fast_glob_1.default)(files !== null && files !== void 0 ? files : this.options.files);
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcom-tool-kit/prettier",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "cd ../../ ; npx jest --silent --projects
|
|
7
|
+
"test": "cd ../../ ; npx jest --silent --projects plugins/prettier"
|
|
8
8
|
},
|
|
9
9
|
"keywords": [],
|
|
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": "^1.
|
|
14
|
-
"@dotcom-tool-kit/
|
|
13
|
+
"@dotcom-tool-kit/error": "^1.3.0",
|
|
14
|
+
"@dotcom-tool-kit/package-json-hook": "^1.3.0",
|
|
15
|
+
"@dotcom-tool-kit/types": "^1.3.0",
|
|
15
16
|
"fast-glob": "^3.2.7",
|
|
16
17
|
"prettier": "^2.2.1"
|
|
17
18
|
},
|
|
18
19
|
"repository": {
|
|
19
20
|
"type": "git",
|
|
20
21
|
"url": "https://github.com/financial-times/dotcom-tool-kit.git",
|
|
21
|
-
"directory": "
|
|
22
|
+
"directory": "plugins/prettier"
|
|
22
23
|
},
|
|
23
24
|
"bugs": "https://github.com/financial-times/dotcom-tool-kit/issues",
|
|
24
|
-
"homepage": "https://github.com/financial-times/dotcom-tool-kit/tree/main/
|
|
25
|
+
"homepage": "https://github.com/financial-times/dotcom-tool-kit/tree/main/plugins/prettier",
|
|
25
26
|
"files": [
|
|
26
27
|
"/lib",
|
|
27
28
|
".toolkitrc.yml"
|
|
28
29
|
],
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
32
|
-
"jest": "^
|
|
33
|
-
"ts-jest": "^26.5.6"
|
|
31
|
+
"@jest/globals": "^27.4.6",
|
|
32
|
+
"jest": "^27.4.7",
|
|
33
|
+
"ts-jest": "^27.1.3"
|
|
34
34
|
},
|
|
35
35
|
"volta": {
|
|
36
36
|
"extends": "../../package.json"
|