@adamhl8/configs 0.17.2 → 0.17.4
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.
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"overrides": [
|
|
41
41
|
{
|
|
42
|
-
"includes": ["**/*.tsx", "./knip.ts", "./prettier.config.js", "tsdown.config.ts"],
|
|
42
|
+
"includes": ["**/*.tsx", "./knip.ts", "./prettier.config.js", "tsdown.config.ts", "astro.config.ts"],
|
|
43
43
|
"linter": {
|
|
44
44
|
"rules": {
|
|
45
45
|
"style": {
|
package/dist/configs/knip.d.ts
CHANGED
|
@@ -34,6 +34,11 @@ declare const knipConfig: OptionalMergeConfigFn<{
|
|
|
34
34
|
entry?: string | string[] | undefined;
|
|
35
35
|
project?: string | string[] | undefined;
|
|
36
36
|
} | undefined;
|
|
37
|
+
bumpp?: string | boolean | string[] | {
|
|
38
|
+
config?: string | string[] | undefined;
|
|
39
|
+
entry?: string | string[] | undefined;
|
|
40
|
+
project?: string | string[] | undefined;
|
|
41
|
+
} | undefined;
|
|
37
42
|
bun?: string | boolean | string[] | {
|
|
38
43
|
config?: string | string[] | undefined;
|
|
39
44
|
entry?: string | string[] | undefined;
|
|
@@ -394,6 +399,11 @@ declare const knipConfig: OptionalMergeConfigFn<{
|
|
|
394
399
|
entry?: string | string[] | undefined;
|
|
395
400
|
project?: string | string[] | undefined;
|
|
396
401
|
} | undefined;
|
|
402
|
+
rstest?: string | boolean | string[] | {
|
|
403
|
+
config?: string | string[] | undefined;
|
|
404
|
+
entry?: string | string[] | undefined;
|
|
405
|
+
project?: string | string[] | undefined;
|
|
406
|
+
} | undefined;
|
|
397
407
|
'semantic-release'?: string | boolean | string[] | {
|
|
398
408
|
config?: string | string[] | undefined;
|
|
399
409
|
entry?: string | string[] | undefined;
|
|
@@ -615,6 +625,11 @@ declare const knipConfig: OptionalMergeConfigFn<{
|
|
|
615
625
|
entry?: string | string[] | undefined;
|
|
616
626
|
project?: string | string[] | undefined;
|
|
617
627
|
} | undefined;
|
|
628
|
+
bumpp?: string | boolean | string[] | {
|
|
629
|
+
config?: string | string[] | undefined;
|
|
630
|
+
entry?: string | string[] | undefined;
|
|
631
|
+
project?: string | string[] | undefined;
|
|
632
|
+
} | undefined;
|
|
618
633
|
bun?: string | boolean | string[] | {
|
|
619
634
|
config?: string | string[] | undefined;
|
|
620
635
|
entry?: string | string[] | undefined;
|
|
@@ -975,6 +990,11 @@ declare const knipConfig: OptionalMergeConfigFn<{
|
|
|
975
990
|
entry?: string | string[] | undefined;
|
|
976
991
|
project?: string | string[] | undefined;
|
|
977
992
|
} | undefined;
|
|
993
|
+
rstest?: string | boolean | string[] | {
|
|
994
|
+
config?: string | string[] | undefined;
|
|
995
|
+
entry?: string | string[] | undefined;
|
|
996
|
+
project?: string | string[] | undefined;
|
|
997
|
+
} | undefined;
|
|
978
998
|
"semantic-release"?: string | boolean | string[] | {
|
|
979
999
|
config?: string | string[] | undefined;
|
|
980
1000
|
entry?: string | string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knip.d.ts","names":[],"sources":["../../src/configs/knip.ts"],"sourcesContent":[],"mappings":";;;cAca;;;IAAA,KAAA,CAAA,EAAA,MAA2E,GAAA,MAAA,EAAA,GAAA,SAAA;IAAA,OAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA,GAAA,SAAA;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"knip.d.ts","names":[],"sources":["../../src/configs/knip.ts"],"sourcesContent":[],"mappings":";;;cAca;;;IAAA,KAAA,CAAA,EAAA,MAA2E,GAAA,MAAA,EAAA,GAAA,SAAA;IAAA,OAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA,GAAA,SAAA;;;;;;;;;;IAC442P,MAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA,GAAA,SAAA;;;MAAoP,SAAA;;IAAio0B,MAAA,CAAA,EAAA,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAio0B;;+BAA+G;mCAA8D;8BAAyD;iCAA4D"}
|
package/dist/configs/tsdown.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ import * as hookable0 from "hookable";
|
|
|
8
8
|
//#region src/configs/tsdown.d.ts
|
|
9
9
|
declare const tsdownConfig: MergeConfigFn<{
|
|
10
10
|
entry?: rolldown0.InputOption;
|
|
11
|
+
exports?: boolean | tsdown0.ExportsOptions;
|
|
12
|
+
plugins?: rolldown0.RolldownPluginOption<any>;
|
|
11
13
|
external?: rolldown0.ExternalOption;
|
|
12
14
|
noExternal?: (string | RegExp | (string | RegExp)[]) | ((id: string, importer: string | undefined) => boolean | null | undefined | void);
|
|
13
15
|
skipNodeModulesBundle?: boolean;
|
|
@@ -21,7 +23,6 @@ declare const tsdownConfig: MergeConfigFn<{
|
|
|
21
23
|
loader?: tsdown0.ModuleTypes;
|
|
22
24
|
removeNodeProtocol?: boolean;
|
|
23
25
|
nodeProtocol?: "strip" | boolean;
|
|
24
|
-
plugins?: rolldown0.RolldownPluginOption<any>;
|
|
25
26
|
inputOptions?: rolldown0.InputOptions | ((options: rolldown0.InputOptions, format: tsdown0.NormalizedFormat, context: {
|
|
26
27
|
cjsDts: boolean;
|
|
27
28
|
}) => void | rolldown0.InputOptions | Promise<void | rolldown0.InputOptions | null> | null);
|
|
@@ -58,7 +59,6 @@ declare const tsdownConfig: MergeConfigFn<{
|
|
|
58
59
|
attw?: boolean | tsdown0.AttwOptions;
|
|
59
60
|
report?: boolean | tsdown0.ReportOptions;
|
|
60
61
|
globImport?: boolean;
|
|
61
|
-
exports?: boolean | tsdown0.ExportsOptions;
|
|
62
62
|
publicDir?: tsdown0.CopyOptions | tsdown0.CopyOptionsFn;
|
|
63
63
|
copy?: tsdown0.CopyOptions | tsdown0.CopyOptionsFn;
|
|
64
64
|
hooks?: Partial<tsdown0.TsdownHooks> | ((hooks: hookable0.Hookable<tsdown0.TsdownHooks>) => void | Promise<void>);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdown.d.ts","names":[],"sources":["../../src/configs/tsdown.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAyCa;UAAyF,SAAA,CAAA;;;;;;;EAAzF,
|
|
1
|
+
{"version":3,"file":"tsdown.d.ts","names":[],"sources":["../../src/configs/tsdown.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAyCa;UAAyF,SAAA,CAAA;;;;;;;EAAzF,QAAA,CAAA,EAAA,MAAyF,GAAA,OAAA;EAAA,MAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA,GAAA,KAAA;KAAA,CAAA,QAAA,CAAA,MAAA,EAAA,GAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA7E,SAAA,MAAA,EAAA,KAAA;EACZ,SAAA,QAAA,EAAwF,SAAA;EAAA,SAAA,MAAA,EAAA,UAAA;WAAA,SAAzE,EAAA,IAAA;WAAA,IAAA,EAAA,KAAA;WAAA,GAAA,EAAA;IAAA,SAAA,UAAA,EAAA,IAAA;;;;;;;;;;cAAf,iBAAe,sBAAA,KAAyE,OAAA,CAAzE,OAAA"}
|
package/dist/ts-import-fix/index
CHANGED
|
@@ -53,8 +53,8 @@ function getPathsMap() {
|
|
|
53
53
|
for (let [alias, [aliasDir]] of Object.entries(tsconfig.config.compilerOptions?.paths ?? {})) {
|
|
54
54
|
if (!alias.endsWith("/*")) continue;
|
|
55
55
|
if (!aliasDir?.endsWith("/*")) continue;
|
|
56
|
-
alias = alias.slice(0, -
|
|
57
|
-
aliasDir = aliasDir.slice(0, -
|
|
56
|
+
alias = alias.slice(0, -1);
|
|
57
|
+
aliasDir = aliasDir.slice(0, -1);
|
|
58
58
|
pathsMap[alias] = aliasDir;
|
|
59
59
|
}
|
|
60
60
|
return pathsMap;
|
|
@@ -66,7 +66,7 @@ function resolveImportPath(importPath, filePath, pathsMap) {
|
|
|
66
66
|
if (!importPath.startsWith(alias)) continue;
|
|
67
67
|
const aliasDir = pathsMap[alias];
|
|
68
68
|
if (!aliasDir) continue;
|
|
69
|
-
const relativePath = importPath.slice(alias.length
|
|
69
|
+
const relativePath = importPath.slice(alias.length);
|
|
70
70
|
return path.resolve(aliasDir, relativePath);
|
|
71
71
|
}
|
|
72
72
|
return path.resolve(fileDir, importPath);
|
|
@@ -109,7 +109,7 @@ function getAliasPathParts(importParts, pathsMap) {
|
|
|
109
109
|
for (const [alias, aliasDir] of Object.entries(pathsMap)) {
|
|
110
110
|
const relativeToAliasDir = path.relative(aliasDir, importPath);
|
|
111
111
|
if (relativeToAliasDir.startsWith("..")) continue;
|
|
112
|
-
return { dir: path.parse(`${alias}
|
|
112
|
+
return { dir: path.parse(`${alias}${relativeToAliasDir}`).dir };
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
async function fixImports(filePaths, { write, importIgnoreStrings, skipAlias }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adamhl8/configs",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"typescript": "^5.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@optique/core": "^0.5.0
|
|
43
|
-
"@optique/run": "^0.5.0
|
|
42
|
+
"@optique/core": "^0.5.0",
|
|
43
|
+
"@optique/run": "^0.5.0",
|
|
44
44
|
"@prettier/plugin-xml": "^3.4.2",
|
|
45
45
|
"es-toolkit": "^1.39.10",
|
|
46
46
|
"get-tsconfig": "^4.10.1",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@arethetypeswrong/core": "^0.18.2",
|
|
59
59
|
"@biomejs/biome": "^2.2.4",
|
|
60
60
|
"@types/bun": "^1.2.22",
|
|
61
|
-
"knip": "^5.
|
|
61
|
+
"knip": "^5.64.0",
|
|
62
62
|
"markdown-toc": "^1.2.0",
|
|
63
63
|
"prettier": "^3.6.2",
|
|
64
64
|
"publint": "^0.3.13",
|