@adamhl8/configs 0.11.1 → 0.12.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/README.md +2 -2
- package/dist/biome.base.jsonc +1 -1
- package/dist/prettier.d.ts +21 -3
- package/dist/prettier.d.ts.map +1 -0
- package/dist/prettier.js +19 -26
- package/dist/prettier.js.map +1 -1
- package/dist/tsconfig.json +2 -6
- package/dist/tsdown.d.ts +23 -0
- package/dist/tsdown.d.ts.map +1 -0
- package/dist/tsdown.js +27 -0
- package/dist/tsdown.js.map +1 -0
- package/package.json +15 -9
package/README.md
CHANGED
package/dist/biome.base.jsonc
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.2.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
|
|
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
|
package/dist/prettier.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
declare const config:
|
|
3
|
-
|
|
1
|
+
//#region configs/prettier.d.ts
|
|
2
|
+
declare const config: {
|
|
3
|
+
readonly printWidth: 120;
|
|
4
|
+
readonly semi: false;
|
|
5
|
+
readonly plugins: ["@prettier/plugin-xml", "prettier-plugin-sh", "prettier-plugin-toml", "prettier-plugin-astro", "prettier-plugin-tailwindcss"];
|
|
6
|
+
readonly tailwindStylesheet: "./src/global.css";
|
|
7
|
+
readonly overrides: [{
|
|
8
|
+
readonly files: "*.jsonc";
|
|
9
|
+
readonly options: {
|
|
10
|
+
readonly trailingComma: "none";
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
readonly files: "*.astro";
|
|
14
|
+
readonly options: {
|
|
15
|
+
readonly parser: "astro";
|
|
16
|
+
};
|
|
17
|
+
}];
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { config };
|
|
21
|
+
//# sourceMappingURL=prettier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prettier.d.ts","names":[],"sources":["../configs/prettier.ts"],"sourcesContent":[],"mappings":";cAEa;EAAA,SA0Bc,UAAA,EAAA,GAAA"}
|
package/dist/prettier.js
CHANGED
|
@@ -1,29 +1,22 @@
|
|
|
1
1
|
const config = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
files: "*.astro",
|
|
22
|
-
options: {
|
|
23
|
-
parser: "astro",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
],
|
|
2
|
+
printWidth: 120,
|
|
3
|
+
semi: false,
|
|
4
|
+
plugins: [
|
|
5
|
+
"@prettier/plugin-xml",
|
|
6
|
+
"prettier-plugin-sh",
|
|
7
|
+
"prettier-plugin-toml",
|
|
8
|
+
"prettier-plugin-astro",
|
|
9
|
+
"prettier-plugin-tailwindcss"
|
|
10
|
+
],
|
|
11
|
+
tailwindStylesheet: "./src/global.css",
|
|
12
|
+
overrides: [{
|
|
13
|
+
files: "*.jsonc",
|
|
14
|
+
options: { trailingComma: "none" }
|
|
15
|
+
}, {
|
|
16
|
+
files: "*.astro",
|
|
17
|
+
options: { parser: "astro" }
|
|
18
|
+
}]
|
|
27
19
|
};
|
|
28
|
-
export
|
|
20
|
+
export { config };
|
|
21
|
+
|
|
29
22
|
//# sourceMappingURL=prettier.js.map
|
package/dist/prettier.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.js","
|
|
1
|
+
{"version":3,"file":"prettier.js","names":[],"sources":["../configs/prettier.ts"],"sourcesContent":["import type { Config } from \"prettier\"\n\nexport const config = {\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,SAAS;CACpB,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/tsconfig.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"exclude": ["${configDir}/dist/"],
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"target": "ESNext",
|
|
5
6
|
"jsx": "react-jsx",
|
|
@@ -10,17 +11,12 @@
|
|
|
10
11
|
"verbatimModuleSyntax": true,
|
|
11
12
|
"esModuleInterop": false,
|
|
12
13
|
"allowSyntheticDefaultImports": true,
|
|
13
|
-
// Need to use '.js' extensions in packages. See: https://github.com/microsoft/TypeScript/issues/61991
|
|
14
|
-
// For non-packages (or anything we don't compile with tsc), we need to set 'rewriteRelativeImportExtensions' to false and 'noEmit' to true
|
|
15
14
|
"allowImportingTsExtensions": true,
|
|
16
|
-
"rewriteRelativeImportExtensions": true,
|
|
17
15
|
"resolveJsonModule": true,
|
|
18
16
|
"allowJs": true,
|
|
19
17
|
"checkJs": true,
|
|
20
18
|
"skipLibCheck": true,
|
|
21
|
-
"
|
|
22
|
-
"sourceMap": true,
|
|
23
|
-
"outDir": "${configDir}/dist/",
|
|
19
|
+
"noEmit": true,
|
|
24
20
|
|
|
25
21
|
// Strictness
|
|
26
22
|
"strict": true,
|
package/dist/tsdown.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region configs/tsdown.d.ts
|
|
2
|
+
declare const config: {
|
|
3
|
+
readonly entry: ["./src/**/*.ts", "!**/__tests__/", "!**/*.test.ts", "!**/test-*.ts"];
|
|
4
|
+
readonly unbundle: true;
|
|
5
|
+
readonly target: false;
|
|
6
|
+
readonly platform: "neutral";
|
|
7
|
+
readonly minify: "dce-only";
|
|
8
|
+
readonly sourcemap: true;
|
|
9
|
+
readonly dts: {
|
|
10
|
+
readonly newContext: true;
|
|
11
|
+
readonly sourcemap: true;
|
|
12
|
+
};
|
|
13
|
+
readonly attw: {
|
|
14
|
+
readonly level: "error";
|
|
15
|
+
readonly profile: "esmOnly";
|
|
16
|
+
};
|
|
17
|
+
readonly publint: true;
|
|
18
|
+
readonly logLevel: "warn";
|
|
19
|
+
readonly failOnWarn: true;
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { config };
|
|
23
|
+
//# sourceMappingURL=tsdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsdown.d.ts","names":[],"sources":["../configs/tsdown.ts"],"sourcesContent":[],"mappings":";cAEa;EAAA,SAkBkB,KAAA,EAAA,CAAA,eAAA,EAAA,gBAAA,EAAA,eAAA,EAAA,eAAA,CAAA"}
|
package/dist/tsdown.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
entry: [
|
|
3
|
+
"./src/**/*.ts",
|
|
4
|
+
"!**/__tests__/",
|
|
5
|
+
"!**/*.test.ts",
|
|
6
|
+
"!**/test-*.ts"
|
|
7
|
+
],
|
|
8
|
+
unbundle: true,
|
|
9
|
+
target: false,
|
|
10
|
+
platform: "neutral",
|
|
11
|
+
minify: "dce-only",
|
|
12
|
+
sourcemap: true,
|
|
13
|
+
dts: {
|
|
14
|
+
newContext: true,
|
|
15
|
+
sourcemap: true
|
|
16
|
+
},
|
|
17
|
+
attw: {
|
|
18
|
+
level: "error",
|
|
19
|
+
profile: "esmOnly"
|
|
20
|
+
},
|
|
21
|
+
publint: true,
|
|
22
|
+
logLevel: "warn",
|
|
23
|
+
failOnWarn: true
|
|
24
|
+
};
|
|
25
|
+
export { config };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=tsdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsdown.js","names":[],"sources":["../configs/tsdown.ts"],"sourcesContent":["import type { UserConfig } from \"tsdown\"\n\nexport const config = {\n entry: [\"./src/**/*.ts\", \"!**/__tests__/\", \"!**/*.test.ts\", \"!**/test-*.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,SAAS;CACpB,OAAO;EAAC;EAAiB;EAAkB;EAAiB;EAAgB;CAC5E,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.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,17 +19,21 @@
|
|
|
19
19
|
"exports": {
|
|
20
20
|
"./tsconfig": "./dist/tsconfig.json",
|
|
21
21
|
"./biome": "./dist/biome.base.jsonc",
|
|
22
|
+
"./tsdown": {
|
|
23
|
+
"types": "./dist/tsdown.d.ts",
|
|
24
|
+
"import": "./dist/tsdown.js"
|
|
25
|
+
},
|
|
22
26
|
"./prettier": {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
27
|
+
"types": "./dist/prettier.d.ts",
|
|
28
|
+
"import": "./dist/prettier.js"
|
|
25
29
|
}
|
|
26
30
|
},
|
|
27
31
|
"files": ["dist/"],
|
|
28
32
|
"scripts": {
|
|
29
|
-
"bundle": "
|
|
30
|
-
"copy-biome-plugins": "mkdir -p ./node_modules/@adamhl8/configs/dist/ && cp -r ./configs/biome-plugins/ ./node_modules/@adamhl8/configs/dist/",
|
|
33
|
+
"bundle": "bun lint && bun tsdown",
|
|
31
34
|
"lint": "tsc --noEmit && biome check --write",
|
|
32
|
-
"
|
|
35
|
+
"postinstall": "mkdir -p ./node_modules/@adamhl8/configs/dist/ && cp -r ./configs/biome-plugins/ ./node_modules/@adamhl8/configs/dist/",
|
|
36
|
+
"prepare": "find .githooks -type f -exec ln -srf {} .git/hooks/ \\; || true",
|
|
33
37
|
"prepublishOnly": "bun bundle"
|
|
34
38
|
},
|
|
35
39
|
"dependencies": {
|
|
@@ -40,10 +44,12 @@
|
|
|
40
44
|
"prettier-plugin-toml": "^2.0.6"
|
|
41
45
|
},
|
|
42
46
|
"devDependencies": {
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
47
|
+
"@arethetypeswrong/core": "^0.18.2",
|
|
48
|
+
"@biomejs/biome": "^2.2.4",
|
|
49
|
+
"@types/bun": "^1.2.21",
|
|
45
50
|
"prettier": "^3.6.2",
|
|
46
|
-
"
|
|
51
|
+
"publint": "^0.3.12",
|
|
52
|
+
"tsdown": "^0.15.0",
|
|
47
53
|
"typescript": "^5.9.2"
|
|
48
54
|
},
|
|
49
55
|
"publishConfig": {
|