@skmtc/core 0.0.638 → 0.0.639
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/esm/context/RenderContext.js +2 -2
- package/esm/helpers/prettier.d.ts +6 -3
- package/esm/helpers/prettier.d.ts.map +1 -1
- package/esm/helpers/prettier.js +6 -3
- package/package.json +1 -1
- package/script/context/RenderContext.js +1 -1
- package/script/helpers/prettier.d.ts +6 -3
- package/script/helpers/prettier.d.ts.map +1 -1
- package/script/helpers/prettier.js +7 -6
|
@@ -15,10 +15,10 @@ import invariant from 'tiny-invariant';
|
|
|
15
15
|
import { normalize } from '../deps/jsr.io/@std/path/1.0.6/mod.js';
|
|
16
16
|
import { toResolvedArtifactPath } from '../helpers/toResolvedArtifactPath.js';
|
|
17
17
|
import { tracer } from '../helpers/tracer.js';
|
|
18
|
-
import {
|
|
18
|
+
import { format, estree, typescript } from '../helpers/prettier.js';
|
|
19
19
|
import makeSynchronized from 'make-synchronized';
|
|
20
20
|
const formatSync = makeSynchronized(import.meta, ({ content, prettierConfig, path }) => {
|
|
21
|
-
return
|
|
21
|
+
return format(content, {
|
|
22
22
|
...prettierConfig,
|
|
23
23
|
parser: 'estree',
|
|
24
24
|
plugins: [estree, typescript],
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as prettier from 'prettier';
|
|
2
|
+
import estreeImport from 'prettier/plugins/estree';
|
|
3
|
+
import typesciptImport from 'prettier/plugins/typescript';
|
|
4
|
+
export declare const format: typeof prettier.format;
|
|
5
|
+
export declare const estree: typeof estreeImport;
|
|
6
|
+
export declare const typescript: typeof typesciptImport;
|
|
4
7
|
//# sourceMappingURL=prettier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/helpers/prettier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/helpers/prettier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AACpC,OAAO,YAAY,MAAM,yBAAyB,CAAA;AAClD,OAAO,eAAe,MAAM,6BAA6B,CAAA;AAEzD,eAAO,MAAM,MAAM,wBAAkB,CAAA;AACrC,eAAO,MAAM,MAAM,qBAAe,CAAA;AAClC,eAAO,MAAM,UAAU,wBAAkB,CAAA"}
|
package/esm/helpers/prettier.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as prettier from 'prettier';
|
|
2
|
+
import estreeImport from 'prettier/plugins/estree';
|
|
3
|
+
import typesciptImport from 'prettier/plugins/typescript';
|
|
4
|
+
export const format = prettier.format;
|
|
5
|
+
export const estree = estreeImport;
|
|
6
|
+
export const typescript = typesciptImport;
|
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@ const tracer_js_1 = require("../helpers/tracer.js");
|
|
|
47
47
|
const prettier_js_1 = require("../helpers/prettier.js");
|
|
48
48
|
const make_synchronized_1 = __importDefault(require("make-synchronized"));
|
|
49
49
|
const formatSync = (0, make_synchronized_1.default)(import.meta, ({ content, prettierConfig, path }) => {
|
|
50
|
-
return prettier_js_1.
|
|
50
|
+
return (0, prettier_js_1.format)(content, {
|
|
51
51
|
...prettierConfig,
|
|
52
52
|
parser: 'estree',
|
|
53
53
|
plugins: [prettier_js_1.estree, prettier_js_1.typescript],
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as prettier from 'prettier';
|
|
2
|
+
import estreeImport from 'prettier/plugins/estree';
|
|
3
|
+
import typesciptImport from 'prettier/plugins/typescript';
|
|
4
|
+
export declare const format: typeof prettier.format;
|
|
5
|
+
export declare const estree: typeof estreeImport;
|
|
6
|
+
export declare const typescript: typeof typesciptImport;
|
|
4
7
|
//# sourceMappingURL=prettier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/helpers/prettier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/helpers/prettier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAA;AACpC,OAAO,YAAY,MAAM,yBAAyB,CAAA;AAClD,OAAO,eAAe,MAAM,6BAA6B,CAAA;AAEzD,eAAO,MAAM,MAAM,wBAAkB,CAAA;AACrC,eAAO,MAAM,MAAM,qBAAe,CAAA;AAClC,eAAO,MAAM,UAAU,wBAAkB,CAAA"}
|
|
@@ -26,9 +26,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.typescript = exports.estree = exports.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
exports.typescript = exports.estree = exports.format = void 0;
|
|
30
|
+
const prettier = __importStar(require("prettier"));
|
|
31
|
+
const estree_1 = __importDefault(require("prettier/plugins/estree"));
|
|
32
|
+
const typescript_1 = __importDefault(require("prettier/plugins/typescript"));
|
|
33
|
+
exports.format = prettier.format;
|
|
34
|
+
exports.estree = estree_1.default;
|
|
35
|
+
exports.typescript = typescript_1.default;
|