@adamhl8/configs 0.14.0 → 0.14.2
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.d.ts +54 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +71 -3
- package/dist/index.js.map +1 -0
- package/package.json +1 -1
- package/dist/knip.d.ts +0 -12
- package/dist/knip.d.ts.map +0 -1
- package/dist/knip.js +0 -11
- package/dist/knip.js.map +0 -1
- package/dist/prettier.d.ts +0 -23
- package/dist/prettier.d.ts.map +0 -1
- package/dist/prettier.js +0 -24
- package/dist/prettier.js.map +0 -1
- package/dist/tsdown.d.ts +0 -25
- package/dist/tsdown.d.ts.map +0 -1
- package/dist/tsdown.js +0 -24
- package/dist/tsdown.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { KnipConfig } from "knip";
|
|
2
|
+
import { Config } from "prettier";
|
|
3
|
+
import { UserConfig } from "tsdown";
|
|
4
|
+
|
|
5
|
+
//#region src/knip.d.ts
|
|
6
|
+
declare const knipConfig: <T extends KnipConfig>(config: T) => {
|
|
7
|
+
readonly entry: ["./src/index.ts", "**/*.test.ts"];
|
|
8
|
+
readonly project: ["**"];
|
|
9
|
+
readonly tsdown: false;
|
|
10
|
+
readonly treatConfigHintsAsErrors: true;
|
|
11
|
+
} & T;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/prettier.d.ts
|
|
14
|
+
declare const prettierConfig: <T extends Config>(config: T) => {
|
|
15
|
+
readonly printWidth: 120;
|
|
16
|
+
readonly semi: false;
|
|
17
|
+
readonly plugins: ["@prettier/plugin-xml", "prettier-plugin-sh", "prettier-plugin-toml", "prettier-plugin-astro", "prettier-plugin-tailwindcss"];
|
|
18
|
+
readonly tailwindStylesheet: "./src/global.css";
|
|
19
|
+
readonly overrides: [{
|
|
20
|
+
readonly files: "*.jsonc";
|
|
21
|
+
readonly options: {
|
|
22
|
+
readonly trailingComma: "none";
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
readonly files: "*.astro";
|
|
26
|
+
readonly options: {
|
|
27
|
+
readonly parser: "astro";
|
|
28
|
+
};
|
|
29
|
+
}];
|
|
30
|
+
} & T;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/tsdown.d.ts
|
|
33
|
+
declare const tsdownConfig: <T extends UserConfig>(config: T) => {
|
|
34
|
+
readonly entry: ["./src/index.ts"];
|
|
35
|
+
readonly unbundle: true;
|
|
36
|
+
readonly target: false;
|
|
37
|
+
readonly platform: "neutral";
|
|
38
|
+
readonly minify: "dce-only";
|
|
39
|
+
readonly sourcemap: true;
|
|
40
|
+
readonly dts: {
|
|
41
|
+
readonly newContext: true;
|
|
42
|
+
readonly sourcemap: true;
|
|
43
|
+
};
|
|
44
|
+
readonly attw: {
|
|
45
|
+
readonly level: "error";
|
|
46
|
+
readonly profile: "esmOnly";
|
|
47
|
+
};
|
|
48
|
+
readonly publint: true;
|
|
49
|
+
readonly logLevel: "warn";
|
|
50
|
+
readonly failOnWarn: true;
|
|
51
|
+
} & T;
|
|
52
|
+
//#endregion
|
|
53
|
+
export { knipConfig, prettierConfig, tsdownConfig };
|
|
54
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/knip.ts","../src/prettier.ts","../src/tsdown.ts"],"sourcesContent":[],"mappings":";;;;;cAiBa,uBAAwB,oBAAoB;;;;EAA5C,SAAA,wBAA6F,EAAA,IAAA;CAAA,IAAA;;;cCiB7F,2BAA4B,gBAAgB;;;;EDjB5C,SAAA,kBAA6F,EAAA,kBAAA;EAAA,SAAA,SAAA,EAAA,CAAA;IAArE,SAAA,KAAA,EAAA,SAAA;IAAoB,SAAA,OAAA,EAAA;;IAAiD,CAAA;;;;MCiB7F,SAA6F,MAAA,EAAA,OAAA;IAAA,CAAA;;;;;cCR7F,yBAA0B,oBAAoB;;;;EFT9C,SAAA,QAA6F,EAAA,SAAA;EAAA,SAAA,MAAA,EAAA,UAAA;WAArE,SAAA,EAAA,IAAA;WAAoB,GAAA,EAAA;;IAAiD,SAAA,SAAA,EAAA,IAAA;;;;ICiB7F,SAAA,OAA6F,EAAA,SAAA;EAAA,CAAA;WAAjE,OAAA,EAAA,IAAA;WAAgB,QAAA,EAAA,MAAA;;CAAiD,IAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
function isUnsafeProperty(key) {
|
|
2
|
+
return key === "__proto__";
|
|
3
|
+
}
|
|
4
|
+
function isObjectLike(value) {
|
|
5
|
+
return typeof value === "object" && value !== null;
|
|
6
|
+
}
|
|
7
|
+
function mergeWith(target, source, merge) {
|
|
8
|
+
const sourceKeys = Object.keys(source);
|
|
9
|
+
for (let i = 0; i < sourceKeys.length; i++) {
|
|
10
|
+
const key = sourceKeys[i];
|
|
11
|
+
if (isUnsafeProperty(key)) continue;
|
|
12
|
+
const sourceValue = source[key];
|
|
13
|
+
const targetValue = target[key];
|
|
14
|
+
const merged = merge(targetValue, sourceValue, key, target, source);
|
|
15
|
+
if (merged !== void 0) target[key] = merged;
|
|
16
|
+
else if (Array.isArray(sourceValue)) target[key] = mergeWith(targetValue ?? [], sourceValue, merge);
|
|
17
|
+
else if (isObjectLike(targetValue) && isObjectLike(sourceValue)) target[key] = mergeWith(targetValue ?? {}, sourceValue, merge);
|
|
18
|
+
else if (targetValue === void 0 || sourceValue !== void 0) target[key] = sourceValue;
|
|
19
|
+
}
|
|
20
|
+
return target;
|
|
21
|
+
}
|
|
22
|
+
const concatArrays = (objValue, srcValue) => Array.isArray(objValue) ? objValue.concat(srcValue) : void 0;
|
|
23
|
+
const baseConfig$2 = {
|
|
24
|
+
entry: ["./src/index.ts", "**/*.test.ts"],
|
|
25
|
+
project: ["**"],
|
|
26
|
+
tsdown: false,
|
|
27
|
+
treatConfigHintsAsErrors: true
|
|
28
|
+
};
|
|
29
|
+
const knipConfig = (config) => mergeWith(baseConfig$2, config, concatArrays);
|
|
30
|
+
const baseConfig$1 = {
|
|
31
|
+
printWidth: 120,
|
|
32
|
+
semi: false,
|
|
33
|
+
plugins: [
|
|
34
|
+
"@prettier/plugin-xml",
|
|
35
|
+
"prettier-plugin-sh",
|
|
36
|
+
"prettier-plugin-toml",
|
|
37
|
+
"prettier-plugin-astro",
|
|
38
|
+
"prettier-plugin-tailwindcss"
|
|
39
|
+
],
|
|
40
|
+
tailwindStylesheet: "./src/global.css",
|
|
41
|
+
overrides: [{
|
|
42
|
+
files: "*.jsonc",
|
|
43
|
+
options: { trailingComma: "none" }
|
|
44
|
+
}, {
|
|
45
|
+
files: "*.astro",
|
|
46
|
+
options: { parser: "astro" }
|
|
47
|
+
}]
|
|
48
|
+
};
|
|
49
|
+
const prettierConfig = (config) => mergeWith(baseConfig$1, config, concatArrays);
|
|
50
|
+
const baseConfig = {
|
|
51
|
+
entry: ["./src/index.ts"],
|
|
52
|
+
unbundle: true,
|
|
53
|
+
target: false,
|
|
54
|
+
platform: "neutral",
|
|
55
|
+
minify: "dce-only",
|
|
56
|
+
sourcemap: true,
|
|
57
|
+
dts: {
|
|
58
|
+
newContext: true,
|
|
59
|
+
sourcemap: true
|
|
60
|
+
},
|
|
61
|
+
attw: {
|
|
62
|
+
level: "error",
|
|
63
|
+
profile: "esmOnly"
|
|
64
|
+
},
|
|
65
|
+
publint: true,
|
|
66
|
+
logLevel: "warn",
|
|
67
|
+
failOnWarn: true
|
|
68
|
+
};
|
|
69
|
+
const tsdownConfig = (config) => mergeWith(baseConfig, config, concatArrays);
|
|
4
70
|
export { knipConfig, prettierConfig, tsdownConfig };
|
|
71
|
+
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["baseConfig","baseConfig"],"sources":["../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs","../node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs","../node_modules/es-toolkit/dist/object/mergeWith.mjs","../src/utils.ts","../src/knip.ts","../src/prettier.ts","../src/tsdown.ts"],"sourcesContent":["function isUnsafeProperty(key) {\n return key === '__proto__';\n}\n\nexport { isUnsafeProperty };\n","function isObjectLike(value) {\n return typeof value === 'object' && value !== null;\n}\n\nexport { isObjectLike };\n","import { isUnsafeProperty } from '../_internal/isUnsafeProperty.mjs';\nimport { isObjectLike } from '../compat/predicate/isObjectLike.mjs';\n\nfunction mergeWith(target, source, merge) {\n const sourceKeys = Object.keys(source);\n for (let i = 0; i < sourceKeys.length; i++) {\n const key = sourceKeys[i];\n if (isUnsafeProperty(key)) {\n continue;\n }\n const sourceValue = source[key];\n const targetValue = target[key];\n const merged = merge(targetValue, sourceValue, key, target, source);\n if (merged !== undefined) {\n target[key] = merged;\n }\n else if (Array.isArray(sourceValue)) {\n target[key] = mergeWith(targetValue ?? [], sourceValue, merge);\n }\n else if (isObjectLike(targetValue) && isObjectLike(sourceValue)) {\n target[key] = mergeWith(targetValue ?? {}, sourceValue, merge);\n }\n else if (targetValue === undefined || sourceValue !== undefined) {\n target[key] = sourceValue;\n }\n }\n return target;\n}\n\nexport { mergeWith };\n","/**\n * A custom merge function for es-toolkit's `mergeWith` that concatenates arrays.\n */\nexport const concatArrays = (objValue: unknown, srcValue: unknown) =>\n Array.isArray(objValue) ? objValue.concat(srcValue) : undefined\n","import { mergeWith } from \"es-toolkit\"\nimport type { KnipConfig } from \"knip\"\n\n// biome-ignore lint/plugin: ignore\nimport { concatArrays } from \"./utils.ts\"\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\nconst baseConfig = {\n entry: [\"./src/index.ts\", \"**/*.test.ts\"],\n project: [\"**\"],\n tsdown: false,\n treatConfigHintsAsErrors: true,\n} as const satisfies KnipConfig\n\nexport const knipConfig = <T extends KnipConfig>(config: T) => mergeWith(baseConfig, config, concatArrays)\n","import { mergeWith } from \"es-toolkit\"\nimport type { Config } from \"prettier\"\n\n// biome-ignore lint/plugin: ignore\nimport { concatArrays } from \"./utils.ts\"\n\nconst baseConfig = {\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\nexport const prettierConfig = <T extends Config>(config: T) => mergeWith(baseConfig, config, concatArrays)\n","import { mergeWith } from \"es-toolkit\"\nimport type { UserConfig } from \"tsdown\"\n\n// biome-ignore lint/plugin: ignore\nimport { concatArrays } from \"./utils.ts\"\n\nconst baseConfig = {\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\nexport const tsdownConfig = <T extends UserConfig>(config: T) => mergeWith(baseConfig, config, concatArrays)\n"],"x_google_ignoreList":[0,1,2],"mappings":"AAAA,SAAS,iBAAiB,KAAK;AAC3B,QAAO,QAAQ;;ACDnB,SAAS,aAAa,OAAO;AACzB,QAAO,OAAO,UAAU,YAAY,UAAU;;ACElD,SAAS,UAAU,QAAQ,QAAQ,OAAO;CACtC,MAAM,aAAa,OAAO,KAAK,OAAO;AACtC,MAAK,IAAI,IAAI,GAAG,IAAI,WAAW,QAAQ,KAAK;EACxC,MAAM,MAAM,WAAW;AACvB,MAAI,iBAAiB,IAAI,CACrB;EAEJ,MAAM,cAAc,OAAO;EAC3B,MAAM,cAAc,OAAO;EAC3B,MAAM,SAAS,MAAM,aAAa,aAAa,KAAK,QAAQ,OAAO;AACnE,MAAI,WAAW,KAAA,EACX,QAAO,OAAO;WAET,MAAM,QAAQ,YAAY,CAC/B,QAAO,OAAO,UAAU,eAAe,EAAE,EAAE,aAAa,MAAM;WAEzD,aAAa,YAAY,IAAI,aAAa,YAAY,CAC3D,QAAO,OAAO,UAAU,eAAe,EAAE,EAAE,aAAa,MAAM;WAEzD,gBAAgB,KAAA,KAAa,gBAAgB,KAAA,EAClD,QAAO,OAAO;;AAGtB,QAAO;;ACvBX,MAAa,gBAAgB,UAAmB,aAC9C,MAAM,QAAQ,SAAS,GAAG,SAAS,OAAO,SAAS,GAAG,KAAA;ACMxD,MAAMC,eAAa;CACjB,OAAO,CAAC,kBAAkB,eAAe;CACzC,SAAS,CAAC,KAAK;CACf,QAAQ;CACR,0BAA0B;CAC3B;AAED,MAAa,cAAoC,WAAc,UAAUA,cAAY,QAAQ,aAAa;ACX1G,MAAMA,eAAa;CACjB,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;AAED,MAAa,kBAAoC,WAAc,UAAUA,cAAY,QAAQ,aAAa;AC5B1G,MAAM,aAAa;CACjB,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;AAED,MAAa,gBAAsC,WAAc,UAAU,YAAY,QAAQ,aAAa"}
|
package/package.json
CHANGED
package/dist/knip.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { KnipConfig } from "knip";
|
|
2
|
-
|
|
3
|
-
//#region src/knip.d.ts
|
|
4
|
-
declare const knipConfig: <T extends KnipConfig>(config: T) => {
|
|
5
|
-
readonly entry: ["./src/index.ts", "**/*.test.ts"];
|
|
6
|
-
readonly project: ["**"];
|
|
7
|
-
readonly tsdown: false;
|
|
8
|
-
readonly treatConfigHintsAsErrors: true;
|
|
9
|
-
} & T;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { knipConfig };
|
|
12
|
-
//# sourceMappingURL=knip.d.ts.map
|
package/dist/knip.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"knip.d.ts","names":[],"sources":["../src/knip.ts"],"sourcesContent":[],"mappings":";;;cAca,uBAAwB,oBAAoB;;EAA5C,SAAA,OAA8E,EAAA,CAAA,IAAA,CAAA;EAAA,SAAA,MAAA,EAAA,KAAA;WAAtD,wBAAA,EAAA,IAAA"}
|
package/dist/knip.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { toMerged } from "./node_modules/es-toolkit/dist/object/toMerged.js";
|
|
2
|
-
const baseConfig = {
|
|
3
|
-
entry: ["./src/index.ts", "**/*.test.ts"],
|
|
4
|
-
project: ["**"],
|
|
5
|
-
tsdown: false,
|
|
6
|
-
treatConfigHintsAsErrors: true
|
|
7
|
-
};
|
|
8
|
-
const knipConfig = (config) => toMerged(baseConfig, config);
|
|
9
|
-
export { knipConfig };
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=knip.js.map
|
package/dist/knip.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"knip.js","names":[],"sources":["../src/knip.ts"],"sourcesContent":["import { toMerged } from \"es-toolkit\"\nimport 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\nconst baseConfig = {\n entry: [\"./src/index.ts\", \"**/*.test.ts\"],\n project: [\"**\"],\n tsdown: false,\n treatConfigHintsAsErrors: true,\n} as const satisfies KnipConfig\n\nexport const knipConfig = <T extends KnipConfig>(config: T) => toMerged(baseConfig, config)\n"],"mappings":";AAOA,MAAM,aAAa;CACjB,OAAO,CAAC,kBAAkB,eAAe;CACzC,SAAS,CAAC,KAAK;CACf,QAAQ;CACR,0BAA0B;CAC3B;AAED,MAAa,cAAoC,WAAc,SAAS,YAAY,OAAO"}
|
package/dist/prettier.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Config } from "prettier";
|
|
2
|
-
|
|
3
|
-
//#region src/prettier.d.ts
|
|
4
|
-
declare const prettierConfig: <T extends Config>(config: T) => {
|
|
5
|
-
readonly printWidth: 120;
|
|
6
|
-
readonly semi: false;
|
|
7
|
-
readonly plugins: ["@prettier/plugin-xml", "prettier-plugin-sh", "prettier-plugin-toml", "prettier-plugin-astro", "prettier-plugin-tailwindcss"];
|
|
8
|
-
readonly tailwindStylesheet: "./src/global.css";
|
|
9
|
-
readonly overrides: [{
|
|
10
|
-
readonly files: "*.jsonc";
|
|
11
|
-
readonly options: {
|
|
12
|
-
readonly trailingComma: "none";
|
|
13
|
-
};
|
|
14
|
-
}, {
|
|
15
|
-
readonly files: "*.astro";
|
|
16
|
-
readonly options: {
|
|
17
|
-
readonly parser: "astro";
|
|
18
|
-
};
|
|
19
|
-
}];
|
|
20
|
-
} & T;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { prettierConfig };
|
|
23
|
-
//# sourceMappingURL=prettier.d.ts.map
|
package/dist/prettier.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.d.ts","names":[],"sources":["../src/prettier.ts"],"sourcesContent":[],"mappings":";;;cA+Ba,2BAA4B,gBAAgB;;EAA5C,SAAA,IAAA,EAAA,KAA8E;EAAA,SAAA,OAAA,EAAA,CAAA,sBAAA,EAAA,oBAAA,EAAA,sBAAA,EAAA,uBAAA,EAAA,6BAAA,CAAA;WAAlD,kBAAA,EAAA,kBAAA;WAAgB,SAAA,EAAA,CAAA;;IAAkC,SAAA,OAAA,EAAA"}
|
package/dist/prettier.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { toMerged } from "./node_modules/es-toolkit/dist/object/toMerged.js";
|
|
2
|
-
const baseConfig = {
|
|
3
|
-
printWidth: 120,
|
|
4
|
-
semi: false,
|
|
5
|
-
plugins: [
|
|
6
|
-
"@prettier/plugin-xml",
|
|
7
|
-
"prettier-plugin-sh",
|
|
8
|
-
"prettier-plugin-toml",
|
|
9
|
-
"prettier-plugin-astro",
|
|
10
|
-
"prettier-plugin-tailwindcss"
|
|
11
|
-
],
|
|
12
|
-
tailwindStylesheet: "./src/global.css",
|
|
13
|
-
overrides: [{
|
|
14
|
-
files: "*.jsonc",
|
|
15
|
-
options: { trailingComma: "none" }
|
|
16
|
-
}, {
|
|
17
|
-
files: "*.astro",
|
|
18
|
-
options: { parser: "astro" }
|
|
19
|
-
}]
|
|
20
|
-
};
|
|
21
|
-
const prettierConfig = (config) => toMerged(baseConfig, config);
|
|
22
|
-
export { prettierConfig };
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=prettier.js.map
|
package/dist/prettier.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.js","names":[],"sources":["../src/prettier.ts"],"sourcesContent":["import { toMerged } from \"es-toolkit\"\nimport type { Config } from \"prettier\"\n\nconst baseConfig = {\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\nexport const prettierConfig = <T extends Config>(config: T) => toMerged(baseConfig, config)\n"],"mappings":";AAGA,MAAM,aAAa;CACjB,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;AAED,MAAa,kBAAoC,WAAc,SAAS,YAAY,OAAO"}
|
package/dist/tsdown.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { UserConfig } from "tsdown";
|
|
2
|
-
|
|
3
|
-
//#region src/tsdown.d.ts
|
|
4
|
-
declare const tsdownConfig: <T extends UserConfig>(config: T) => {
|
|
5
|
-
readonly entry: ["./src/index.ts"];
|
|
6
|
-
readonly unbundle: true;
|
|
7
|
-
readonly target: false;
|
|
8
|
-
readonly platform: "neutral";
|
|
9
|
-
readonly minify: "dce-only";
|
|
10
|
-
readonly sourcemap: true;
|
|
11
|
-
readonly dts: {
|
|
12
|
-
readonly newContext: true;
|
|
13
|
-
readonly sourcemap: true;
|
|
14
|
-
};
|
|
15
|
-
readonly attw: {
|
|
16
|
-
readonly level: "error";
|
|
17
|
-
readonly profile: "esmOnly";
|
|
18
|
-
};
|
|
19
|
-
readonly publint: true;
|
|
20
|
-
readonly logLevel: "warn";
|
|
21
|
-
readonly failOnWarn: true;
|
|
22
|
-
} & T;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { tsdownConfig };
|
|
25
|
-
//# sourceMappingURL=tsdown.d.ts.map
|
package/dist/tsdown.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tsdown.d.ts","names":[],"sources":["../src/tsdown.ts"],"sourcesContent":[],"mappings":";;;cAuBa,yBAA0B,oBAAoB;;EAA9C,SAAA,QAAgF,EAAA,IAAA;EAAA,SAAA,MAAA,EAAA,KAAA;WAAtD,QAAA,EAAA,SAAA;WAAoB,MAAA,EAAA,UAAA;;EAAkC,SAAA,GAAA,EAAA"}
|
package/dist/tsdown.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { toMerged } from "./node_modules/es-toolkit/dist/object/toMerged.js";
|
|
2
|
-
const baseConfig = {
|
|
3
|
-
entry: ["./src/index.ts"],
|
|
4
|
-
unbundle: true,
|
|
5
|
-
target: false,
|
|
6
|
-
platform: "neutral",
|
|
7
|
-
minify: "dce-only",
|
|
8
|
-
sourcemap: true,
|
|
9
|
-
dts: {
|
|
10
|
-
newContext: true,
|
|
11
|
-
sourcemap: true
|
|
12
|
-
},
|
|
13
|
-
attw: {
|
|
14
|
-
level: "error",
|
|
15
|
-
profile: "esmOnly"
|
|
16
|
-
},
|
|
17
|
-
publint: true,
|
|
18
|
-
logLevel: "warn",
|
|
19
|
-
failOnWarn: true
|
|
20
|
-
};
|
|
21
|
-
const tsdownConfig = (config) => toMerged(baseConfig, config);
|
|
22
|
-
export { tsdownConfig };
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=tsdown.js.map
|
package/dist/tsdown.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tsdown.js","names":[],"sources":["../src/tsdown.ts"],"sourcesContent":["import { toMerged } from \"es-toolkit\"\nimport type { UserConfig } from \"tsdown\"\n\nconst baseConfig = {\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\nexport const tsdownConfig = <T extends UserConfig>(config: T) => toMerged(baseConfig, config)\n"],"mappings":";AAGA,MAAM,aAAa;CACjB,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;AAED,MAAa,gBAAsC,WAAc,SAAS,YAAY,OAAO"}
|