@adamhl8/configs 0.13.1 → 0.14.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.d.ts +54 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +224 -3
- package/dist/index.js.map +1 -0
- package/package.json +2 -1
- package/dist/knip.d.ts +0 -9
- package/dist/knip.d.ts.map +0 -1
- package/dist/knip.js +0 -8
- package/dist/knip.js.map +0 -1
- package/dist/prettier.d.ts +0 -21
- package/dist/prettier.d.ts.map +0 -1
- package/dist/prettier.js +0 -22
- package/dist/prettier.js.map +0 -1
- package/dist/tsdown.d.ts +0 -23
- package/dist/tsdown.d.ts.map +0 -1
- package/dist/tsdown.js +0 -22
- 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":";;;;;cAca,uBAAwB,oBAAoB;;;;EAA5C,SAAA,wBAA8E,EAAA,IAAA;CAAA,IAAA;;;cCiB9E,2BAA4B,gBAAgB;;;;EDjB5C,SAAA,kBAA8E,EAAA,kBAAA;EAAA,SAAA,SAAA,EAAA,CAAA;IAAtD,SAAA,KAAA,EAAA,SAAA;IAAoB,SAAA,OAAA,EAAA;;IAAkC,CAAA;;;;MCiB9E,SAA8E,MAAA,EAAA,OAAA;IAAA,CAAA;;;;;cCR9E,yBAA0B,oBAAoB;;;;EFT9C,SAAA,QAA8E,EAAA,SAAA;EAAA,SAAA,MAAA,EAAA,UAAA;WAAtD,SAAA,EAAA,IAAA;WAAoB,GAAA,EAAA;;IAAkC,SAAA,SAAA,EAAA,IAAA;;;;ICiB9E,SAAA,OAA8E,EAAA,SAAA;EAAA,CAAA;WAAlD,OAAA,EAAA,IAAA;WAAgB,QAAA,EAAA,MAAA;;CAAkC,IAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,225 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
function isPrimitive(value) {
|
|
2
|
+
return value == null || typeof value !== "object" && typeof value !== "function";
|
|
3
|
+
}
|
|
4
|
+
function isTypedArray(x) {
|
|
5
|
+
return ArrayBuffer.isView(x) && !(x instanceof DataView);
|
|
6
|
+
}
|
|
7
|
+
function getSymbols(object) {
|
|
8
|
+
return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
|
|
9
|
+
}
|
|
10
|
+
function getTag(value) {
|
|
11
|
+
if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
|
|
12
|
+
return Object.prototype.toString.call(value);
|
|
13
|
+
}
|
|
14
|
+
const regexpTag = "[object RegExp]";
|
|
15
|
+
const stringTag = "[object String]";
|
|
16
|
+
const numberTag = "[object Number]";
|
|
17
|
+
const booleanTag = "[object Boolean]";
|
|
18
|
+
const argumentsTag = "[object Arguments]";
|
|
19
|
+
const symbolTag = "[object Symbol]";
|
|
20
|
+
const dateTag = "[object Date]";
|
|
21
|
+
const mapTag = "[object Map]";
|
|
22
|
+
const setTag = "[object Set]";
|
|
23
|
+
const arrayTag = "[object Array]";
|
|
24
|
+
const arrayBufferTag = "[object ArrayBuffer]";
|
|
25
|
+
const objectTag = "[object Object]";
|
|
26
|
+
const dataViewTag = "[object DataView]";
|
|
27
|
+
const uint8ArrayTag = "[object Uint8Array]";
|
|
28
|
+
const uint8ClampedArrayTag = "[object Uint8ClampedArray]";
|
|
29
|
+
const uint16ArrayTag = "[object Uint16Array]";
|
|
30
|
+
const uint32ArrayTag = "[object Uint32Array]";
|
|
31
|
+
const int8ArrayTag = "[object Int8Array]";
|
|
32
|
+
const int16ArrayTag = "[object Int16Array]";
|
|
33
|
+
const int32ArrayTag = "[object Int32Array]";
|
|
34
|
+
const float32ArrayTag = "[object Float32Array]";
|
|
35
|
+
const float64ArrayTag = "[object Float64Array]";
|
|
36
|
+
function cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = /* @__PURE__ */ new Map(), cloneValue = void 0) {
|
|
37
|
+
const cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);
|
|
38
|
+
if (cloned !== void 0) return cloned;
|
|
39
|
+
if (isPrimitive(valueToClone)) return valueToClone;
|
|
40
|
+
if (stack.has(valueToClone)) return stack.get(valueToClone);
|
|
41
|
+
if (Array.isArray(valueToClone)) {
|
|
42
|
+
const result = new Array(valueToClone.length);
|
|
43
|
+
stack.set(valueToClone, result);
|
|
44
|
+
for (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);
|
|
45
|
+
if (Object.hasOwn(valueToClone, "index")) result.index = valueToClone.index;
|
|
46
|
+
if (Object.hasOwn(valueToClone, "input")) result.input = valueToClone.input;
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
if (valueToClone instanceof Date) return new Date(valueToClone.getTime());
|
|
50
|
+
if (valueToClone instanceof RegExp) {
|
|
51
|
+
const result = new RegExp(valueToClone.source, valueToClone.flags);
|
|
52
|
+
result.lastIndex = valueToClone.lastIndex;
|
|
53
|
+
return result;
|
|
54
|
+
}
|
|
55
|
+
if (valueToClone instanceof Map) {
|
|
56
|
+
const result = /* @__PURE__ */ new Map();
|
|
57
|
+
stack.set(valueToClone, result);
|
|
58
|
+
for (const [key, value] of valueToClone) result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));
|
|
59
|
+
return result;
|
|
60
|
+
}
|
|
61
|
+
if (valueToClone instanceof Set) {
|
|
62
|
+
const result = /* @__PURE__ */ new Set();
|
|
63
|
+
stack.set(valueToClone, result);
|
|
64
|
+
for (const value of valueToClone) result.add(cloneDeepWithImpl(value, void 0, objectToClone, stack, cloneValue));
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
67
|
+
if (typeof Buffer !== "undefined" && Buffer.isBuffer(valueToClone)) return valueToClone.subarray();
|
|
68
|
+
if (isTypedArray(valueToClone)) {
|
|
69
|
+
const result = new (Object.getPrototypeOf(valueToClone)).constructor(valueToClone.length);
|
|
70
|
+
stack.set(valueToClone, result);
|
|
71
|
+
for (let i = 0; i < valueToClone.length; i++) result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
if (valueToClone instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && valueToClone instanceof SharedArrayBuffer) return valueToClone.slice(0);
|
|
75
|
+
if (valueToClone instanceof DataView) {
|
|
76
|
+
const result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);
|
|
77
|
+
stack.set(valueToClone, result);
|
|
78
|
+
copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
if (typeof File !== "undefined" && valueToClone instanceof File) {
|
|
82
|
+
const result = new File([valueToClone], valueToClone.name, { type: valueToClone.type });
|
|
83
|
+
stack.set(valueToClone, result);
|
|
84
|
+
copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
|
|
85
|
+
return result;
|
|
86
|
+
}
|
|
87
|
+
if (valueToClone instanceof Blob) {
|
|
88
|
+
const result = new Blob([valueToClone], { type: valueToClone.type });
|
|
89
|
+
stack.set(valueToClone, result);
|
|
90
|
+
copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
|
|
91
|
+
return result;
|
|
92
|
+
}
|
|
93
|
+
if (valueToClone instanceof Error) {
|
|
94
|
+
const result = new valueToClone.constructor();
|
|
95
|
+
stack.set(valueToClone, result);
|
|
96
|
+
result.message = valueToClone.message;
|
|
97
|
+
result.name = valueToClone.name;
|
|
98
|
+
result.stack = valueToClone.stack;
|
|
99
|
+
result.cause = valueToClone.cause;
|
|
100
|
+
copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
|
|
101
|
+
return result;
|
|
102
|
+
}
|
|
103
|
+
if (typeof valueToClone === "object" && isCloneableObject(valueToClone)) {
|
|
104
|
+
const result = Object.create(Object.getPrototypeOf(valueToClone));
|
|
105
|
+
stack.set(valueToClone, result);
|
|
106
|
+
copyProperties(result, valueToClone, objectToClone, stack, cloneValue);
|
|
107
|
+
return result;
|
|
108
|
+
}
|
|
109
|
+
return valueToClone;
|
|
110
|
+
}
|
|
111
|
+
function copyProperties(target, source, objectToClone = target, stack, cloneValue) {
|
|
112
|
+
const keys = [...Object.keys(source), ...getSymbols(source)];
|
|
113
|
+
for (let i = 0; i < keys.length; i++) {
|
|
114
|
+
const key = keys[i];
|
|
115
|
+
const descriptor = Object.getOwnPropertyDescriptor(target, key);
|
|
116
|
+
if (descriptor == null || descriptor.writable) target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function isCloneableObject(object) {
|
|
120
|
+
switch (getTag(object)) {
|
|
121
|
+
case argumentsTag:
|
|
122
|
+
case arrayTag:
|
|
123
|
+
case arrayBufferTag:
|
|
124
|
+
case dataViewTag:
|
|
125
|
+
case booleanTag:
|
|
126
|
+
case dateTag:
|
|
127
|
+
case float32ArrayTag:
|
|
128
|
+
case float64ArrayTag:
|
|
129
|
+
case int8ArrayTag:
|
|
130
|
+
case int16ArrayTag:
|
|
131
|
+
case int32ArrayTag:
|
|
132
|
+
case mapTag:
|
|
133
|
+
case numberTag:
|
|
134
|
+
case objectTag:
|
|
135
|
+
case regexpTag:
|
|
136
|
+
case setTag:
|
|
137
|
+
case stringTag:
|
|
138
|
+
case symbolTag:
|
|
139
|
+
case uint8ArrayTag:
|
|
140
|
+
case uint8ClampedArrayTag:
|
|
141
|
+
case uint16ArrayTag:
|
|
142
|
+
case uint32ArrayTag: return true;
|
|
143
|
+
default: return false;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function cloneDeep(obj) {
|
|
147
|
+
return cloneDeepWithImpl(obj, void 0, obj, /* @__PURE__ */ new Map(), void 0);
|
|
148
|
+
}
|
|
149
|
+
function isPlainObject(value) {
|
|
150
|
+
if (!value || typeof value !== "object") return false;
|
|
151
|
+
const proto = Object.getPrototypeOf(value);
|
|
152
|
+
if (!(proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null)) return false;
|
|
153
|
+
return Object.prototype.toString.call(value) === "[object Object]";
|
|
154
|
+
}
|
|
155
|
+
function isUnsafeProperty(key) {
|
|
156
|
+
return key === "__proto__";
|
|
157
|
+
}
|
|
158
|
+
function merge(target, source) {
|
|
159
|
+
const sourceKeys = Object.keys(source);
|
|
160
|
+
for (let i = 0; i < sourceKeys.length; i++) {
|
|
161
|
+
const key = sourceKeys[i];
|
|
162
|
+
if (isUnsafeProperty(key)) continue;
|
|
163
|
+
const sourceValue = source[key];
|
|
164
|
+
const targetValue = target[key];
|
|
165
|
+
if (Array.isArray(sourceValue)) if (Array.isArray(targetValue)) target[key] = merge(targetValue, sourceValue);
|
|
166
|
+
else target[key] = merge([], sourceValue);
|
|
167
|
+
else if (isPlainObject(sourceValue)) if (isPlainObject(targetValue)) target[key] = merge(targetValue, sourceValue);
|
|
168
|
+
else target[key] = merge({}, sourceValue);
|
|
169
|
+
else if (targetValue === void 0 || sourceValue !== void 0) target[key] = sourceValue;
|
|
170
|
+
}
|
|
171
|
+
return target;
|
|
172
|
+
}
|
|
173
|
+
function toMerged(target, source) {
|
|
174
|
+
return merge(cloneDeep(target), source);
|
|
175
|
+
}
|
|
176
|
+
const baseConfig$2 = {
|
|
177
|
+
entry: ["./src/index.ts", "**/*.test.ts"],
|
|
178
|
+
project: ["**"],
|
|
179
|
+
tsdown: false,
|
|
180
|
+
treatConfigHintsAsErrors: true
|
|
181
|
+
};
|
|
182
|
+
const knipConfig = (config) => toMerged(baseConfig$2, config);
|
|
183
|
+
const baseConfig$1 = {
|
|
184
|
+
printWidth: 120,
|
|
185
|
+
semi: false,
|
|
186
|
+
plugins: [
|
|
187
|
+
"@prettier/plugin-xml",
|
|
188
|
+
"prettier-plugin-sh",
|
|
189
|
+
"prettier-plugin-toml",
|
|
190
|
+
"prettier-plugin-astro",
|
|
191
|
+
"prettier-plugin-tailwindcss"
|
|
192
|
+
],
|
|
193
|
+
tailwindStylesheet: "./src/global.css",
|
|
194
|
+
overrides: [{
|
|
195
|
+
files: "*.jsonc",
|
|
196
|
+
options: { trailingComma: "none" }
|
|
197
|
+
}, {
|
|
198
|
+
files: "*.astro",
|
|
199
|
+
options: { parser: "astro" }
|
|
200
|
+
}]
|
|
201
|
+
};
|
|
202
|
+
const prettierConfig = (config) => toMerged(baseConfig$1, config);
|
|
203
|
+
const baseConfig = {
|
|
204
|
+
entry: ["./src/index.ts"],
|
|
205
|
+
unbundle: true,
|
|
206
|
+
target: false,
|
|
207
|
+
platform: "neutral",
|
|
208
|
+
minify: "dce-only",
|
|
209
|
+
sourcemap: true,
|
|
210
|
+
dts: {
|
|
211
|
+
newContext: true,
|
|
212
|
+
sourcemap: true
|
|
213
|
+
},
|
|
214
|
+
attw: {
|
|
215
|
+
level: "error",
|
|
216
|
+
profile: "esmOnly"
|
|
217
|
+
},
|
|
218
|
+
publint: true,
|
|
219
|
+
logLevel: "warn",
|
|
220
|
+
failOnWarn: true
|
|
221
|
+
};
|
|
222
|
+
const tsdownConfig = (config) => toMerged(baseConfig, config);
|
|
4
223
|
export { knipConfig, prettierConfig, tsdownConfig };
|
|
224
|
+
|
|
225
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["baseConfig","baseConfig"],"sources":["../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs","../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs","../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs","../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs","../node_modules/es-toolkit/dist/compat/_internal/tags.mjs","../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs","../node_modules/es-toolkit/dist/object/cloneDeep.mjs","../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs","../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs","../node_modules/es-toolkit/dist/object/merge.mjs","../node_modules/es-toolkit/dist/object/toMerged.mjs","../src/knip.ts","../src/prettier.ts","../src/tsdown.ts"],"sourcesContent":["function isPrimitive(value) {\n return value == null || (typeof value !== 'object' && typeof value !== 'function');\n}\n\nexport { isPrimitive };\n","function isTypedArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n\nexport { isTypedArray };\n","function getSymbols(object) {\n return Object.getOwnPropertySymbols(object).filter(symbol => Object.prototype.propertyIsEnumerable.call(object, symbol));\n}\n\nexport { getSymbols };\n","function getTag(value) {\n if (value == null) {\n return value === undefined ? '[object Undefined]' : '[object Null]';\n }\n return Object.prototype.toString.call(value);\n}\n\nexport { getTag };\n","const regexpTag = '[object RegExp]';\nconst stringTag = '[object String]';\nconst numberTag = '[object Number]';\nconst booleanTag = '[object Boolean]';\nconst argumentsTag = '[object Arguments]';\nconst symbolTag = '[object Symbol]';\nconst dateTag = '[object Date]';\nconst mapTag = '[object Map]';\nconst setTag = '[object Set]';\nconst arrayTag = '[object Array]';\nconst functionTag = '[object Function]';\nconst arrayBufferTag = '[object ArrayBuffer]';\nconst objectTag = '[object Object]';\nconst errorTag = '[object Error]';\nconst dataViewTag = '[object DataView]';\nconst uint8ArrayTag = '[object Uint8Array]';\nconst uint8ClampedArrayTag = '[object Uint8ClampedArray]';\nconst uint16ArrayTag = '[object Uint16Array]';\nconst uint32ArrayTag = '[object Uint32Array]';\nconst bigUint64ArrayTag = '[object BigUint64Array]';\nconst int8ArrayTag = '[object Int8Array]';\nconst int16ArrayTag = '[object Int16Array]';\nconst int32ArrayTag = '[object Int32Array]';\nconst bigInt64ArrayTag = '[object BigInt64Array]';\nconst float32ArrayTag = '[object Float32Array]';\nconst float64ArrayTag = '[object Float64Array]';\n\nexport { argumentsTag, arrayBufferTag, arrayTag, bigInt64ArrayTag, bigUint64ArrayTag, booleanTag, dataViewTag, dateTag, errorTag, float32ArrayTag, float64ArrayTag, functionTag, int16ArrayTag, int32ArrayTag, int8ArrayTag, mapTag, numberTag, objectTag, regexpTag, setTag, stringTag, symbolTag, uint16ArrayTag, uint32ArrayTag, uint8ArrayTag, uint8ClampedArrayTag };\n","import { getSymbols } from '../compat/_internal/getSymbols.mjs';\nimport { getTag } from '../compat/_internal/getTag.mjs';\nimport { uint32ArrayTag, uint16ArrayTag, uint8ClampedArrayTag, uint8ArrayTag, symbolTag, stringTag, setTag, regexpTag, objectTag, numberTag, mapTag, int32ArrayTag, int16ArrayTag, int8ArrayTag, float64ArrayTag, float32ArrayTag, dateTag, booleanTag, dataViewTag, arrayBufferTag, arrayTag, argumentsTag } from '../compat/_internal/tags.mjs';\nimport { isPrimitive } from '../predicate/isPrimitive.mjs';\nimport { isTypedArray } from '../predicate/isTypedArray.mjs';\n\nfunction cloneDeepWith(obj, cloneValue) {\n return cloneDeepWithImpl(obj, undefined, obj, new Map(), cloneValue);\n}\nfunction cloneDeepWithImpl(valueToClone, keyToClone, objectToClone, stack = new Map(), cloneValue = undefined) {\n const cloned = cloneValue?.(valueToClone, keyToClone, objectToClone, stack);\n if (cloned !== undefined) {\n return cloned;\n }\n if (isPrimitive(valueToClone)) {\n return valueToClone;\n }\n if (stack.has(valueToClone)) {\n return stack.get(valueToClone);\n }\n if (Array.isArray(valueToClone)) {\n const result = new Array(valueToClone.length);\n stack.set(valueToClone, result);\n for (let i = 0; i < valueToClone.length; i++) {\n result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n }\n if (Object.hasOwn(valueToClone, 'index')) {\n result.index = valueToClone.index;\n }\n if (Object.hasOwn(valueToClone, 'input')) {\n result.input = valueToClone.input;\n }\n return result;\n }\n if (valueToClone instanceof Date) {\n return new Date(valueToClone.getTime());\n }\n if (valueToClone instanceof RegExp) {\n const result = new RegExp(valueToClone.source, valueToClone.flags);\n result.lastIndex = valueToClone.lastIndex;\n return result;\n }\n if (valueToClone instanceof Map) {\n const result = new Map();\n stack.set(valueToClone, result);\n for (const [key, value] of valueToClone) {\n result.set(key, cloneDeepWithImpl(value, key, objectToClone, stack, cloneValue));\n }\n return result;\n }\n if (valueToClone instanceof Set) {\n const result = new Set();\n stack.set(valueToClone, result);\n for (const value of valueToClone) {\n result.add(cloneDeepWithImpl(value, undefined, objectToClone, stack, cloneValue));\n }\n return result;\n }\n if (typeof Buffer !== 'undefined' && Buffer.isBuffer(valueToClone)) {\n return valueToClone.subarray();\n }\n if (isTypedArray(valueToClone)) {\n const result = new (Object.getPrototypeOf(valueToClone).constructor)(valueToClone.length);\n stack.set(valueToClone, result);\n for (let i = 0; i < valueToClone.length; i++) {\n result[i] = cloneDeepWithImpl(valueToClone[i], i, objectToClone, stack, cloneValue);\n }\n return result;\n }\n if (valueToClone instanceof ArrayBuffer ||\n (typeof SharedArrayBuffer !== 'undefined' && valueToClone instanceof SharedArrayBuffer)) {\n return valueToClone.slice(0);\n }\n if (valueToClone instanceof DataView) {\n const result = new DataView(valueToClone.buffer.slice(0), valueToClone.byteOffset, valueToClone.byteLength);\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (typeof File !== 'undefined' && valueToClone instanceof File) {\n const result = new File([valueToClone], valueToClone.name, {\n type: valueToClone.type,\n });\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (valueToClone instanceof Blob) {\n const result = new Blob([valueToClone], { type: valueToClone.type });\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (valueToClone instanceof Error) {\n const result = new valueToClone.constructor();\n stack.set(valueToClone, result);\n result.message = valueToClone.message;\n result.name = valueToClone.name;\n result.stack = valueToClone.stack;\n result.cause = valueToClone.cause;\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n if (typeof valueToClone === 'object' && isCloneableObject(valueToClone)) {\n const result = Object.create(Object.getPrototypeOf(valueToClone));\n stack.set(valueToClone, result);\n copyProperties(result, valueToClone, objectToClone, stack, cloneValue);\n return result;\n }\n return valueToClone;\n}\nfunction copyProperties(target, source, objectToClone = target, stack, cloneValue) {\n const keys = [...Object.keys(source), ...getSymbols(source)];\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const descriptor = Object.getOwnPropertyDescriptor(target, key);\n if (descriptor == null || descriptor.writable) {\n target[key] = cloneDeepWithImpl(source[key], key, objectToClone, stack, cloneValue);\n }\n }\n}\nfunction isCloneableObject(object) {\n switch (getTag(object)) {\n case argumentsTag:\n case arrayTag:\n case arrayBufferTag:\n case dataViewTag:\n case booleanTag:\n case dateTag:\n case float32ArrayTag:\n case float64ArrayTag:\n case int8ArrayTag:\n case int16ArrayTag:\n case int32ArrayTag:\n case mapTag:\n case numberTag:\n case objectTag:\n case regexpTag:\n case setTag:\n case stringTag:\n case symbolTag:\n case uint8ArrayTag:\n case uint8ClampedArrayTag:\n case uint16ArrayTag:\n case uint32ArrayTag: {\n return true;\n }\n default: {\n return false;\n }\n }\n}\n\nexport { cloneDeepWith, cloneDeepWithImpl, copyProperties };\n","import { cloneDeepWithImpl } from './cloneDeepWith.mjs';\n\nfunction cloneDeep(obj) {\n return cloneDeepWithImpl(obj, undefined, obj, new Map(), undefined);\n}\n\nexport { cloneDeep };\n","function isPlainObject(value) {\n if (!value || typeof value !== 'object') {\n return false;\n }\n const proto = Object.getPrototypeOf(value);\n const hasObjectPrototype = proto === null ||\n proto === Object.prototype ||\n Object.getPrototypeOf(proto) === null;\n if (!hasObjectPrototype) {\n return false;\n }\n return Object.prototype.toString.call(value) === '[object Object]';\n}\n\nexport { isPlainObject };\n","function isUnsafeProperty(key) {\n return key === '__proto__';\n}\n\nexport { isUnsafeProperty };\n","import { isUnsafeProperty } from '../_internal/isUnsafeProperty.mjs';\nimport { isPlainObject } from '../predicate/isPlainObject.mjs';\n\nfunction merge(target, source) {\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 if (Array.isArray(sourceValue)) {\n if (Array.isArray(targetValue)) {\n target[key] = merge(targetValue, sourceValue);\n }\n else {\n target[key] = merge([], sourceValue);\n }\n }\n else if (isPlainObject(sourceValue)) {\n if (isPlainObject(targetValue)) {\n target[key] = merge(targetValue, sourceValue);\n }\n else {\n target[key] = merge({}, sourceValue);\n }\n }\n else if (targetValue === undefined || sourceValue !== undefined) {\n target[key] = sourceValue;\n }\n }\n return target;\n}\n\nexport { merge };\n","import { cloneDeep } from './cloneDeep.mjs';\nimport { merge } from './merge.mjs';\n\nfunction toMerged(target, source) {\n return merge(cloneDeep(target), source);\n}\n\nexport { toMerged };\n","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","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","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"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10],"mappings":"AAAA,SAAS,YAAY,OAAO;AACxB,QAAO,SAAS,QAAS,OAAO,UAAU,YAAY,OAAO,UAAU;;ACD3E,SAAS,aAAa,GAAG;AACrB,QAAO,YAAY,OAAO,EAAE,IAAI,EAAE,aAAa;;ACDnD,SAAS,WAAW,QAAQ;AACxB,QAAO,OAAO,sBAAsB,OAAO,CAAC,QAAO,WAAU,OAAO,UAAU,qBAAqB,KAAK,QAAQ,OAAO,CAAC;;ACD5H,SAAS,OAAO,OAAO;AACnB,KAAI,SAAS,KACT,QAAO,UAAU,KAAA,IAAY,uBAAuB;AAExD,QAAO,OAAO,UAAU,SAAS,KAAK,MAAM;;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AAO,CAAC,kBAAkB,eAAe;CACzC,SAAS,CAAC,KAAK;CACf,QAAQ;CACR,0BAA0B;CAC3B;AAED,MAAa,cAAoC,WAAc,SAASA,cAAY,OAAO;ACX3F,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,SAASA,cAAY,OAAO;AC5B3F,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adamhl8/configs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"@arethetypeswrong/core": "^0.18.2",
|
|
44
44
|
"@biomejs/biome": "^2.2.4",
|
|
45
45
|
"@types/bun": "^1.2.21",
|
|
46
|
+
"es-toolkit": "^1.39.10",
|
|
46
47
|
"knip": "^5.63.1",
|
|
47
48
|
"prettier": "^3.6.2",
|
|
48
49
|
"publint": "^0.3.12",
|
package/dist/knip.d.ts
DELETED
package/dist/knip.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
package/dist/knip.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
//#region src/prettier.d.ts
|
|
2
|
-
declare const prettierConfig: {
|
|
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 { prettierConfig };
|
|
21
|
-
//# 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":";cAEa;EAAA,SAAA,UA0Bc,EAAA,GAAA"}
|
package/dist/prettier.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const prettierConfig = {
|
|
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
|
-
}]
|
|
19
|
-
};
|
|
20
|
-
export { prettierConfig };
|
|
21
|
-
|
|
22
|
-
//# 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 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
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
//#region src/tsdown.d.ts
|
|
2
|
-
declare const tsdownConfig: {
|
|
3
|
-
readonly entry: ["./src/index.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 { tsdownConfig };
|
|
23
|
-
//# 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":";cAEa;EAAA,SAAA,KAAA,EAkBkB,CAAA,gBAAA,CAAA"}
|
package/dist/tsdown.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const tsdownConfig = {
|
|
2
|
-
entry: ["./src/index.ts"],
|
|
3
|
-
unbundle: true,
|
|
4
|
-
target: false,
|
|
5
|
-
platform: "neutral",
|
|
6
|
-
minify: "dce-only",
|
|
7
|
-
sourcemap: true,
|
|
8
|
-
dts: {
|
|
9
|
-
newContext: true,
|
|
10
|
-
sourcemap: true
|
|
11
|
-
},
|
|
12
|
-
attw: {
|
|
13
|
-
level: "error",
|
|
14
|
-
profile: "esmOnly"
|
|
15
|
-
},
|
|
16
|
-
publint: true,
|
|
17
|
-
logLevel: "warn",
|
|
18
|
-
failOnWarn: true
|
|
19
|
-
};
|
|
20
|
-
export { tsdownConfig };
|
|
21
|
-
|
|
22
|
-
//# 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 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"}
|