@adamhl8/configs 0.12.0 → 0.13.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/biome.base.jsonc +2 -3
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/knip.d.ts +9 -0
- package/dist/knip.d.ts.map +1 -0
- package/dist/knip.js +8 -0
- package/dist/knip.js.map +1 -0
- package/dist/prettier.d.ts +3 -3
- package/dist/prettier.d.ts.map +1 -1
- package/dist/prettier.js +2 -2
- package/dist/prettier.js.map +1 -1
- package/dist/tsdown.d.ts +4 -4
- package/dist/tsdown.d.ts.map +1 -1
- package/dist/tsdown.js +3 -8
- package/dist/tsdown.js.map +1 -1
- package/package.json +6 -9
package/dist/biome.base.jsonc
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"root": false,
|
|
4
4
|
// https://github.com/biomejs/biome/issues/6676
|
|
5
5
|
// Extending this config from the root config of this project causes an error because the plugin files do not exist in 'node_modules'. i.e. the whole 'node_modules/@adamhl8/configs' directory does not exist
|
|
6
|
-
// As a workaround, we use the prepare script to manually copy the './
|
|
6
|
+
// As a workaround, we use the prepare script to manually copy the './src/biome-plugins/' directory to the correct location in 'node_modules'.
|
|
7
7
|
"plugins": ["./node_modules/@adamhl8/configs/dist/biome-plugins/import-paths.grit"],
|
|
8
8
|
"vcs": {
|
|
9
9
|
"enabled": true,
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"useSortedClasses": "on"
|
|
53
53
|
},
|
|
54
54
|
"performance": {
|
|
55
|
-
"noBarrelFile": "on",
|
|
56
55
|
"noDelete": "on",
|
|
57
56
|
"noReExportAll": "on",
|
|
58
57
|
"useTopLevelRegex": "on",
|
|
@@ -172,7 +171,7 @@
|
|
|
172
171
|
},
|
|
173
172
|
"overrides": [
|
|
174
173
|
{
|
|
175
|
-
"includes": ["**/*.tsx"],
|
|
174
|
+
"includes": ["**/*.tsx", "./knip.ts", "./prettier.config.js", "tsdown.config.ts"],
|
|
176
175
|
"linter": {
|
|
177
176
|
"rules": {
|
|
178
177
|
"style": {
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/dist/knip.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knip.d.ts","names":[],"sources":["../src/knip.ts"],"sourcesContent":[],"mappings":";cAMa;EAAA,SAAA,KAIkB,EAAA,CAAA,gBAAA,EAAA,cAAA,CAAA"}
|
package/dist/knip.js
ADDED
package/dist/knip.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knip.js","names":[],"sources":["../src/knip.ts"],"sourcesContent":["import type { KnipConfig } from \"knip\"\n\n// Normally, specifying the `./src/index.ts` entry would cause knip to complain about a redundant entry because it gets automatically included via the tsdown plugin.\n// However, in projects that _don't_ use tsdown, the `./src/index.ts` entry would be missing entirely.\n// To handle this, we specify it and disable the tsdown plugin. This makes knip work in both cases.\n\nexport const knipConfig = {\n entry: [\"./src/index.ts\", \"**/*.test.ts\"], // knip automatically grabs the `./src/index.ts` entrypoint with its tsdown plugin\n project: [\"**\"],\n tsdown: false,\n} as const satisfies KnipConfig\n"],"mappings":"AAMA,MAAa,aAAa;CACxB,OAAO,CAAC,kBAAkB,eAAe;CACzC,SAAS,CAAC,KAAK;CACf,QAAQ;CACT"}
|
package/dist/prettier.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//#region
|
|
2
|
-
declare const
|
|
1
|
+
//#region src/prettier.d.ts
|
|
2
|
+
declare const prettierConfig: {
|
|
3
3
|
readonly printWidth: 120;
|
|
4
4
|
readonly semi: false;
|
|
5
5
|
readonly plugins: ["@prettier/plugin-xml", "prettier-plugin-sh", "prettier-plugin-toml", "prettier-plugin-astro", "prettier-plugin-tailwindcss"];
|
|
@@ -17,5 +17,5 @@ declare const config: {
|
|
|
17
17
|
}];
|
|
18
18
|
};
|
|
19
19
|
//#endregion
|
|
20
|
-
export {
|
|
20
|
+
export { prettierConfig };
|
|
21
21
|
//# sourceMappingURL=prettier.d.ts.map
|
package/dist/prettier.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.d.ts","names":[],"sources":["../
|
|
1
|
+
{"version":3,"file":"prettier.d.ts","names":[],"sources":["../src/prettier.ts"],"sourcesContent":[],"mappings":";cAEa;EAAA,SAAA,UA0Bc,EAAA,GAAA"}
|
package/dist/prettier.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const prettierConfig = {
|
|
2
2
|
printWidth: 120,
|
|
3
3
|
semi: false,
|
|
4
4
|
plugins: [
|
|
@@ -17,6 +17,6 @@ const config = {
|
|
|
17
17
|
options: { parser: "astro" }
|
|
18
18
|
}]
|
|
19
19
|
};
|
|
20
|
-
export {
|
|
20
|
+
export { prettierConfig };
|
|
21
21
|
|
|
22
22
|
//# sourceMappingURL=prettier.js.map
|
package/dist/prettier.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.js","names":[],"sources":["../
|
|
1
|
+
{"version":3,"file":"prettier.js","names":[],"sources":["../src/prettier.ts"],"sourcesContent":["import type { Config } from \"prettier\"\n\nexport const prettierConfig = {\n printWidth: 120,\n semi: false,\n plugins: [\n \"@prettier/plugin-xml\",\n \"prettier-plugin-sh\",\n \"prettier-plugin-toml\",\n \"prettier-plugin-astro\",\n \"prettier-plugin-tailwindcss\",\n ],\n tailwindStylesheet: \"./src/global.css\",\n overrides: [\n {\n // https://github.com/prettier/prettier/issues/15956\n files: \"*.jsonc\",\n options: {\n trailingComma: \"none\",\n },\n },\n {\n files: \"*.astro\",\n options: {\n parser: \"astro\",\n },\n },\n ],\n} as const satisfies Config\n"],"mappings":"AAEA,MAAa,iBAAiB;CAC5B,YAAY;CACZ,MAAM;CACN,SAAS;EACP;EACA;EACA;EACA;EACA;EACD;CACD,oBAAoB;CACpB,WAAW,CACT;EAEE,OAAO;EACP,SAAS,EACP,eAAe,QAChB;EACF,EACD;EACE,OAAO;EACP,SAAS,EACP,QAAQ,SACT;EACF,CACF;CACF"}
|
package/dist/tsdown.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//#region
|
|
2
|
-
declare const
|
|
3
|
-
readonly entry: ["./src
|
|
1
|
+
//#region src/tsdown.d.ts
|
|
2
|
+
declare const tsdownConfig: {
|
|
3
|
+
readonly entry: ["./src/index.ts"];
|
|
4
4
|
readonly unbundle: true;
|
|
5
5
|
readonly target: false;
|
|
6
6
|
readonly platform: "neutral";
|
|
@@ -19,5 +19,5 @@ declare const config: {
|
|
|
19
19
|
readonly failOnWarn: true;
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
22
|
-
export {
|
|
22
|
+
export { tsdownConfig };
|
|
23
23
|
//# sourceMappingURL=tsdown.d.ts.map
|
package/dist/tsdown.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdown.d.ts","names":[],"sources":["../
|
|
1
|
+
{"version":3,"file":"tsdown.d.ts","names":[],"sources":["../src/tsdown.ts"],"sourcesContent":[],"mappings":";cAEa;EAAA,SAAA,KAAA,EAkBkB,CAAA,gBAAA,CAAA"}
|
package/dist/tsdown.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
entry: [
|
|
3
|
-
"./src/**/*.ts",
|
|
4
|
-
"!**/__tests__/",
|
|
5
|
-
"!**/*.test.ts",
|
|
6
|
-
"!**/test-*.ts"
|
|
7
|
-
],
|
|
1
|
+
const tsdownConfig = {
|
|
2
|
+
entry: ["./src/index.ts"],
|
|
8
3
|
unbundle: true,
|
|
9
4
|
target: false,
|
|
10
5
|
platform: "neutral",
|
|
@@ -22,6 +17,6 @@ const config = {
|
|
|
22
17
|
logLevel: "warn",
|
|
23
18
|
failOnWarn: true
|
|
24
19
|
};
|
|
25
|
-
export {
|
|
20
|
+
export { tsdownConfig };
|
|
26
21
|
|
|
27
22
|
//# sourceMappingURL=tsdown.js.map
|
package/dist/tsdown.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdown.js","names":[],"sources":["../
|
|
1
|
+
{"version":3,"file":"tsdown.js","names":[],"sources":["../src/tsdown.ts"],"sourcesContent":["import type { UserConfig } from \"tsdown\"\n\nexport const tsdownConfig = {\n entry: [\"./src/index.ts\"],\n unbundle: true,\n target: false,\n platform: \"neutral\",\n minify: \"dce-only\",\n sourcemap: true,\n dts: {\n newContext: true,\n sourcemap: true,\n },\n attw: {\n level: \"error\",\n profile: \"esmOnly\",\n },\n publint: true,\n logLevel: \"warn\",\n failOnWarn: true,\n} as const satisfies UserConfig\n"],"mappings":"AAEA,MAAa,eAAe;CAC1B,OAAO,CAAC,iBAAiB;CACzB,UAAU;CACV,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,WAAW;CACX,KAAK;EACH,YAAY;EACZ,WAAW;EACZ;CACD,MAAM;EACJ,OAAO;EACP,SAAS;EACV;CACD,SAAS;CACT,UAAU;CACV,YAAY;CACb"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adamhl8/configs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,20 +19,16 @@
|
|
|
19
19
|
"exports": {
|
|
20
20
|
"./tsconfig": "./dist/tsconfig.json",
|
|
21
21
|
"./biome": "./dist/biome.base.jsonc",
|
|
22
|
-
"
|
|
23
|
-
"types": "./dist/
|
|
24
|
-
"import": "./dist/
|
|
25
|
-
},
|
|
26
|
-
"./prettier": {
|
|
27
|
-
"types": "./dist/prettier.d.ts",
|
|
28
|
-
"import": "./dist/prettier.js"
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.js"
|
|
29
25
|
}
|
|
30
26
|
},
|
|
31
27
|
"files": ["dist/"],
|
|
32
28
|
"scripts": {
|
|
33
29
|
"bundle": "bun lint && bun tsdown",
|
|
34
30
|
"lint": "tsc --noEmit && biome check --write",
|
|
35
|
-
"postinstall": "mkdir -p ./node_modules/@adamhl8/configs/dist/ && cp -r ./
|
|
31
|
+
"postinstall": "mkdir -p ./node_modules/@adamhl8/configs/dist/ && cp -r ./src/biome-plugins/ ./node_modules/@adamhl8/configs/dist/",
|
|
36
32
|
"prepare": "find .githooks -type f -exec ln -srf {} .git/hooks/ \\; || true",
|
|
37
33
|
"prepublishOnly": "bun bundle"
|
|
38
34
|
},
|
|
@@ -47,6 +43,7 @@
|
|
|
47
43
|
"@arethetypeswrong/core": "^0.18.2",
|
|
48
44
|
"@biomejs/biome": "^2.2.4",
|
|
49
45
|
"@types/bun": "^1.2.21",
|
|
46
|
+
"knip": "^5.63.1",
|
|
50
47
|
"prettier": "^3.6.2",
|
|
51
48
|
"publint": "^0.3.12",
|
|
52
49
|
"tsdown": "^0.15.0",
|