@w5s/prettier-config 3.0.5 → 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/dist/index.cjs ADDED
@@ -0,0 +1,25 @@
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
5
+ //#region src/meta.ts
6
+ const meta = Object.freeze({
7
+ name: "@w5s/prettier-config",
8
+ version: "3.1.1",
9
+ buildNumber: 1
10
+ });
11
+ //#endregion
12
+ //#region src/config.ts
13
+ const config = {
14
+ singleQuote: true,
15
+ trailingComma: "all",
16
+ overrides: [{
17
+ files: ["*.css", "*.scss"],
18
+ options: { trailingComma: "none" }
19
+ }]
20
+ };
21
+ //#endregion
22
+ exports.default = config;
23
+ exports.meta = meta;
24
+
25
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../src/meta.ts","../src/config.ts"],"sourcesContent":["export const meta = Object.freeze({\n // @ts-ignore - these variables are injected at build time\n name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n // @ts-ignore - these variables are injected at build time\n version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n // @ts-ignore - these variables are injected at build time\n buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n});\n","import type { Config } from 'prettier';\n\nexport const config: Config = {\n singleQuote: true,\n trailingComma: 'all',\n overrides: [\n {\n files: ['*.css', '*.scss'],\n options: {\n trailingComma: 'none',\n },\n },\n ],\n};\n"],"mappings":";;;;;AAAA,MAAa,OAAO,OAAO,OAAO;CAEhC,MAAA;CAEA,SAAA;CAEA,aAAa;CACd,CAAC;;;ACLF,MAAa,SAAiB;CAC5B,aAAa;CACb,eAAe;CACf,WAAW,CACT;EACE,OAAO,CAAC,SAAS,SAAS;EAC1B,SAAS,EACP,eAAe,QAChB;EACF,CACF;CACF"}
@@ -0,0 +1,14 @@
1
+ import { Config } from "prettier";
2
+
3
+ //#region src/meta.d.ts
4
+ declare const meta: Readonly<{
5
+ name: string;
6
+ version: string;
7
+ buildNumber: number;
8
+ }>;
9
+ //#endregion
10
+ //#region src/config.d.ts
11
+ declare const config: Config;
12
+ //#endregion
13
+ export { config as default, meta };
14
+ //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,5 +1,14 @@
1
- import { Config } from 'prettier';
1
+ import { Config } from "prettier";
2
2
 
3
- declare const prettierConfig: Config;
4
-
5
- export { prettierConfig as default };
3
+ //#region src/meta.d.ts
4
+ declare const meta: Readonly<{
5
+ name: string;
6
+ version: string;
7
+ buildNumber: number;
8
+ }>;
9
+ //#endregion
10
+ //#region src/config.d.ts
11
+ declare const config: Config;
12
+ //#endregion
13
+ export { config as default, meta };
14
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,18 +1,20 @@
1
- // src/index.ts
2
- var prettierConfig = {
3
- singleQuote: true,
4
- trailingComma: "all",
5
- overrides: [
6
- {
7
- files: ["*.css", "*.scss"],
8
- options: {
9
- trailingComma: "none"
10
- }
11
- }
12
- ]
1
+ //#region src/meta.ts
2
+ const meta = Object.freeze({
3
+ name: "@w5s/prettier-config",
4
+ version: "3.1.1",
5
+ buildNumber: 1
6
+ });
7
+ //#endregion
8
+ //#region src/config.ts
9
+ const config = {
10
+ singleQuote: true,
11
+ trailingComma: "all",
12
+ overrides: [{
13
+ files: ["*.css", "*.scss"],
14
+ options: { trailingComma: "none" }
15
+ }]
13
16
  };
14
- var index_default = prettierConfig;
17
+ //#endregion
18
+ export { config as default, meta };
15
19
 
16
- export { index_default as default };
17
- //# sourceMappingURL=index.js.map
18
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAEA,IAAM,cAAA,GAAyB;AAAA,EAC7B,WAAA,EAAa,IAAA;AAAA,EACb,aAAA,EAAe,KAAA;AAAA,EACf,SAAA,EAAW;AAAA,IACT;AAAA,MACE,KAAA,EAAO,CAAC,OAAA,EAAS,QAAQ,CAAA;AAAA,MACzB,OAAA,EAAS;AAAA,QACP,aAAA,EAAe;AAAA;AACjB;AACF;AAEJ,CAAA;AAEA,IAAO,aAAA,GAAQ","file":"index.js","sourcesContent":["import type { Config } from 'prettier';\n\nconst prettierConfig: Config = {\n singleQuote: true,\n trailingComma: 'all',\n overrides: [\n {\n files: ['*.css', '*.scss'],\n options: {\n trailingComma: 'none',\n },\n },\n ],\n};\n\nexport default prettierConfig;\n"]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/meta.ts","../src/config.ts"],"sourcesContent":["export const meta = Object.freeze({\n // @ts-ignore - these variables are injected at build time\n name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n // @ts-ignore - these variables are injected at build time\n version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n // @ts-ignore - these variables are injected at build time\n buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n});\n","import type { Config } from 'prettier';\n\nexport const config: Config = {\n singleQuote: true,\n trailingComma: 'all',\n overrides: [\n {\n files: ['*.css', '*.scss'],\n options: {\n trailingComma: 'none',\n },\n },\n ],\n};\n"],"mappings":";AAAA,MAAa,OAAO,OAAO,OAAO;CAEhC,MAAA;CAEA,SAAA;CAEA,aAAa;CACd,CAAC;;;ACLF,MAAa,SAAiB;CAC5B,aAAa;CACb,eAAe;CACf,WAAW,CACT;EACE,OAAO,CAAC,SAAS,SAAS;EAC1B,SAAS,EACP,eAAe,QAChB;EACF,CACF;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/prettier-config",
3
- "version": "3.0.5",
3
+ "version": "3.1.1",
4
4
  "description": "Prettier shared configuration",
5
5
  "keywords": [
6
6
  "typescript",
@@ -38,30 +38,7 @@
38
38
  "!**/__tests__/**"
39
39
  ],
40
40
  "scripts": {
41
- "build": "npx run-p \"build:*\"",
42
- "build:tsc": "npx tsup",
43
- "clean": "npx run-p \"clean:*\"",
44
- "clean:tsc": "rm -rf dist",
45
- "docs": "node ../../markdown.mjs",
46
- "format": "npx run-p \"format:*\"",
47
- "format:src": "eslint . --fix",
48
- "lint": "npx run-p \"lint:*\"",
49
- "lint:src": "eslint .",
50
- "postpack": "npx clean-package restore",
51
- "prepack": "npx clean-package",
52
- "prepare": "npx run-p \"prepare:*\"",
53
- "prepare:empty": ":",
54
- "prepublishOnly": "npm run clean;npm run build",
55
- "spellcheck": "cspell --no-progress '**'",
56
- "test": "npx run-p \"test:*\"",
57
- "test:src": "vitest run"
58
- },
59
- "devDependencies": {
60
- "@w5s/tsup-config": "2.0.4",
61
- "prettier": "3.8.1",
62
- "tsup": "8.5.1",
63
- "vite": "7.3.1",
64
- "vitest": "4.0.18"
41
+ "postpack": "clean-package restore"
65
42
  },
66
43
  "peerDependencies": {
67
44
  "prettier": "2.x || 3.x"
@@ -71,7 +48,6 @@
71
48
  "optional": true
72
49
  }
73
50
  },
74
- "clean-package": "../../clean-package.config.mjs",
75
51
  "engines": {
76
52
  "node": ">=20.0.0"
77
53
  },
@@ -79,5 +55,5 @@
79
55
  "access": "public"
80
56
  },
81
57
  "sideEffect": false,
82
- "gitHead": "550810ad9a8d35378bb00361cd0080bd67058fc5"
58
+ "gitHead": "202a665e3ce20aabf1eff51af6b0eb013c179e0a"
83
59
  }
package/src/config.ts ADDED
@@ -0,0 +1,14 @@
1
+ import type { Config } from 'prettier';
2
+
3
+ export const config: Config = {
4
+ singleQuote: true,
5
+ trailingComma: 'all',
6
+ overrides: [
7
+ {
8
+ files: ['*.css', '*.scss'],
9
+ options: {
10
+ trailingComma: 'none',
11
+ },
12
+ },
13
+ ],
14
+ };
package/src/index.ts CHANGED
@@ -1,16 +1,2 @@
1
- import type { Config } from 'prettier';
2
-
3
- const prettierConfig: Config = {
4
- singleQuote: true,
5
- trailingComma: 'all',
6
- overrides: [
7
- {
8
- files: ['*.css', '*.scss'],
9
- options: {
10
- trailingComma: 'none',
11
- },
12
- },
13
- ],
14
- };
15
-
16
- export default prettierConfig;
1
+ export * from './meta.js';
2
+ export { config as default } from './config.js';
package/src/meta.ts ADDED
@@ -0,0 +1,8 @@
1
+ export const meta = Object.freeze({
2
+ // @ts-ignore - these variables are injected at build time
3
+ name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,
4
+ // @ts-ignore - these variables are injected at build time
5
+ version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,
6
+ // @ts-ignore - these variables are injected at build time
7
+ buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,
8
+ });