@jakubmazanec/carson 3.0.4-unstable.cbef197a → 3.0.4-unstable.d0bbc216

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.
@@ -9,7 +9,7 @@ export async function prettify(content, targetPath) {
9
9
  prettifiedContent = await prettier.format(content, {
10
10
  ...prettierOptions,
11
11
  filepath: targetPath,
12
- plugins: [packageJsonPrettierPlugin]
12
+ plugins: [...prettierOptions?.plugins ?? [], packageJsonPrettierPlugin]
13
13
  });
14
14
  } catch (error) {
15
15
  if (!NO_INFERRED_PARSER.test(error.message)) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../source/template/internals/prettify.ts"],
4
- "sourcesContent": ["import prettier, {type Plugin} from 'prettier';\nimport packageJsonPrettierPlugin from 'prettier-plugin-packagejson';\n\nconst NO_INFERRED_PARSER = /parser.*inferred/i;\n\nexport async function prettify(content: string, targetPath: string) {\n let prettifiedContent = content;\n\n try {\n let prettierOptions = await prettier.resolveConfig(targetPath, {editorconfig: true});\n\n prettifiedContent = await prettier.format(content, {\n ...prettierOptions,\n filepath: targetPath,\n plugins: [packageJsonPrettierPlugin as Plugin],\n });\n } catch (error: unknown) {\n if (!NO_INFERRED_PARSER.test((error as Error).message)) {\n throw error;\n }\n }\n\n return prettifiedContent;\n}\n"],
5
- "mappings": ";AAAA,OAAO,cAA6B;AACpC,OAAO,+BAA+B;AAEtC,MAAM,qBAAqB;AAE3B,sBAAsB,SAAS,SAAiB,YAAoB;AAClE,MAAI,oBAAoB;AAExB,MAAI;AACF,QAAI,kBAAkB,MAAM,SAAS,cAAc,YAAY,EAAC,cAAc,KAAI,CAAC;AAEnF,wBAAoB,MAAM,SAAS,OAAO,SAAS;AAAA,MACjD,GAAG;AAAA,MACH,UAAU;AAAA,MACV,SAAS,CAAC,yBAAmC;AAAA,IAC/C,CAAC;AAAA,EACH,SAAS,OAAgB;AACvB,QAAI,CAAC,mBAAmB,KAAM,MAAgB,OAAO,GAAG;AACtD,YAAM;AAAA,IACR;AAAA,EACF;AAEA,SAAO;AACT;",
4
+ "sourcesContent": ["import prettier, {type Plugin} from 'prettier';\nimport packageJsonPrettierPlugin from 'prettier-plugin-packagejson';\n\nconst NO_INFERRED_PARSER = /parser.*inferred/i;\n\nexport async function prettify(content: string, targetPath: string) {\n let prettifiedContent = content;\n\n try {\n let prettierOptions = await prettier.resolveConfig(targetPath, {editorconfig: true});\n\n prettifiedContent = await prettier.format(content, {\n ...prettierOptions,\n filepath: targetPath,\n plugins: [...(prettierOptions?.plugins ?? []), packageJsonPrettierPlugin as Plugin],\n });\n } catch (error: unknown) {\n if (!NO_INFERRED_PARSER.test((error as Error).message)) {\n throw error;\n }\n }\n\n return prettifiedContent;\n}\n"],
5
+ "mappings": ";AAAA,OAAO,cAA6B;AACpC,OAAO,+BAA+B;AAEtC,MAAM,qBAAqB;AAE3B,sBAAsB,SAAS,SAAiB,YAAoB;AAClE,MAAI,oBAAoB;AAExB,MAAI;AACF,QAAI,kBAAkB,MAAM,SAAS,cAAc,YAAY,EAAC,cAAc,KAAI,CAAC;AAEnF,wBAAoB,MAAM,SAAS,OAAO,SAAS;AAAA,MACjD,GAAG;AAAA,MACH,UAAU;AAAA,MACV,SAAS,CAAC,GAAI,iBAAiB,WAAW,CAAC,GAAI,yBAAmC;AAAA,IACpF,CAAC;AAAA,EACH,SAAS,OAAgB;AACvB,QAAI,CAAC,mBAAmB,KAAM,MAAgB,OAAO,GAAG;AACtD,YAAM;AAAA,IACR;AAAA,EACF;AAEA,SAAO;AACT;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jakubmazanec/carson",
3
- "version": "3.0.4-unstable.cbef197a",
3
+ "version": "3.0.4-unstable.d0bbc216",
4
4
  "description": "Tool for managing workspace and project configuration.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,13 +32,13 @@
32
32
  "typecheck": "tsc --project tsconfig.typecheck.json"
33
33
  },
34
34
  "dependencies": {
35
- "@jakubmazanec/args": "2.0.16-unstable.cbef197a",
36
- "@jakubmazanec/cli": "^0.5.0",
37
- "@jakubmazanec/error": "^3.0.0",
38
- "@jakubmazanec/fs-utils": "^0.2.0",
39
- "@jakubmazanec/template": "2.0.17-unstable.cbef197a",
40
- "@jakubmazanec/ts-utils": "^3.0.0",
41
- "@jakubmazanec/zod-utils": "^3.0.0",
35
+ "@jakubmazanec/args": "2.0.16-unstable.d0bbc216",
36
+ "@jakubmazanec/cli": "0.5.4-unstable.d0bbc216",
37
+ "@jakubmazanec/error": "3.0.16-unstable.d0bbc216",
38
+ "@jakubmazanec/fs-utils": "0.2.16-unstable.d0bbc216",
39
+ "@jakubmazanec/template": "2.0.17-unstable.d0bbc216",
40
+ "@jakubmazanec/ts-utils": "3.0.17-unstable.d0bbc216",
41
+ "@jakubmazanec/zod-utils": "3.0.2-unstable.d0bbc216",
42
42
  "chalk": "^5.6.2",
43
43
  "fast-glob": "^3.3.3",
44
44
  "fflate": "^0.8.2",
@@ -54,7 +54,7 @@
54
54
  "zod": "^4.1.13"
55
55
  },
56
56
  "devDependencies": {
57
- "@jakubmazanec/eslint-config": "^4.1.0",
57
+ "@jakubmazanec/eslint-config": "4.1.10-unstable.d0bbc216",
58
58
  "@types/fs-extra": "^11.0.4",
59
59
  "@types/lodash": "^4.17.21",
60
60
  "@types/node": "^24.0.4",
@@ -12,7 +12,7 @@ export async function prettify(content: string, targetPath: string) {
12
12
  prettifiedContent = await prettier.format(content, {
13
13
  ...prettierOptions,
14
14
  filepath: targetPath,
15
- plugins: [packageJsonPrettierPlugin as Plugin],
15
+ plugins: [...(prettierOptions?.plugins ?? []), packageJsonPrettierPlugin as Plugin],
16
16
  });
17
17
  } catch (error: unknown) {
18
18
  if (!NO_INFERRED_PARSER.test((error as Error).message)) {