@shibanet0/datamitsu-config 0.0.1-alpha-4 → 0.0.1-alpha-5
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/datamitsu.js +115 -5
- package/dist/commitlint/index.d.ts +106 -1
- package/dist/commitlint/index.js +4 -3
- package/package.json +5 -2
package/datamitsu.js
CHANGED
|
@@ -615,12 +615,107 @@ var appState_default = {
|
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
+
},
|
|
619
|
+
actionlint: {
|
|
620
|
+
binaries: {
|
|
621
|
+
darwin: {
|
|
622
|
+
amd64: {
|
|
623
|
+
binaryPath: "actionlint",
|
|
624
|
+
contentType: "tar.gz",
|
|
625
|
+
hash: "f89a910e90e536f60df7c504160247db01dd67cab6f08c064c1c397b76c91a79",
|
|
626
|
+
url: "https://github.com/rhysd/actionlint/releases/download/v1.7.9/actionlint_1.7.9_darwin_amd64.tar.gz"
|
|
627
|
+
},
|
|
628
|
+
arm64: {
|
|
629
|
+
binaryPath: "actionlint",
|
|
630
|
+
contentType: "tar.gz",
|
|
631
|
+
hash: "855e49e823fc68c6371fd6967e359cde11912d8d44fed343283c8e6e943bd789",
|
|
632
|
+
url: "https://github.com/rhysd/actionlint/releases/download/v1.7.9/actionlint_1.7.9_darwin_arm64.tar.gz"
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
linux: {
|
|
636
|
+
amd64: {
|
|
637
|
+
binaryPath: "actionlint",
|
|
638
|
+
contentType: "tar.gz",
|
|
639
|
+
hash: "233b280d05e100837f4af1433c7b40a5dcb306e3aa68fb4f17f8a7f45a7df7b4",
|
|
640
|
+
url: "https://github.com/rhysd/actionlint/releases/download/v1.7.9/actionlint_1.7.9_linux_amd64.tar.gz"
|
|
641
|
+
},
|
|
642
|
+
arm64: {
|
|
643
|
+
binaryPath: "actionlint",
|
|
644
|
+
contentType: "tar.gz",
|
|
645
|
+
hash: "6b82a3b8c808bf1bcd39a95aced22fc1a026eef08ede410f81e274af8deadbbc",
|
|
646
|
+
url: "https://github.com/rhysd/actionlint/releases/download/v1.7.9/actionlint_1.7.9_linux_arm64.tar.gz"
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
windows: {
|
|
650
|
+
amd64: {
|
|
651
|
+
binaryPath: "actionlint.exe",
|
|
652
|
+
contentType: "zip",
|
|
653
|
+
hash: "7c8b10a93723838bc3533f6e1886d868fdbb109b81606ebe6d1a533d11d8e978",
|
|
654
|
+
url: "https://github.com/rhysd/actionlint/releases/download/v1.7.9/actionlint_1.7.9_windows_amd64.zip"
|
|
655
|
+
},
|
|
656
|
+
arm64: {
|
|
657
|
+
binaryPath: "actionlint.exe",
|
|
658
|
+
contentType: "zip",
|
|
659
|
+
hash: "7aca9bf09eedf0a743e08c7cb9f1712467a7324a9342a029ae4536fb4be95c25",
|
|
660
|
+
url: "https://github.com/rhysd/actionlint/releases/download/v1.7.9/actionlint_1.7.9_windows_arm64.zip"
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
tag: "v1.7.9",
|
|
665
|
+
type: "github"
|
|
666
|
+
},
|
|
667
|
+
typos: {
|
|
668
|
+
binaries: {
|
|
669
|
+
darwin: {
|
|
670
|
+
amd64: {
|
|
671
|
+
binaryPath: "typos",
|
|
672
|
+
contentType: "tar.gz",
|
|
673
|
+
hash: "51368551a37e15464438ea5c95ad29cb7239bfdefd69ee9a9be5ff3d45fc4d19",
|
|
674
|
+
url: "https://github.com/crate-ci/typos/releases/download/v1.40.0/typos-v1.40.0-x86_64-apple-darwin.tar.gz"
|
|
675
|
+
},
|
|
676
|
+
arm64: {
|
|
677
|
+
binaryPath: "typos",
|
|
678
|
+
contentType: "tar.gz",
|
|
679
|
+
hash: "1ea9ed6520b94d0e1148942e3ef80a997ff8db856e1389edaa9a5bdaff658fa4",
|
|
680
|
+
url: "https://github.com/crate-ci/typos/releases/download/v1.40.0/typos-v1.40.0-aarch64-apple-darwin.tar.gz"
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
linux: {
|
|
684
|
+
amd64: {
|
|
685
|
+
binaryPath: "typos",
|
|
686
|
+
contentType: "tar.gz",
|
|
687
|
+
hash: "485405d0a92871f45ead0703d23c04ae6969ad4a6e5799794f55eb04b9f07801",
|
|
688
|
+
url: "https://github.com/crate-ci/typos/releases/download/v1.40.0/typos-v1.40.0-x86_64-unknown-linux-musl.tar.gz"
|
|
689
|
+
},
|
|
690
|
+
arm64: {
|
|
691
|
+
binaryPath: "typos",
|
|
692
|
+
contentType: "tar.gz",
|
|
693
|
+
hash: "349b2c3f7c7fba125e978df232faa9c5a57c33aa144f88cbc250c8c6d3e8e054",
|
|
694
|
+
url: "https://github.com/crate-ci/typos/releases/download/v1.40.0/typos-v1.40.0-aarch64-unknown-linux-musl.tar.gz"
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
windows: {
|
|
698
|
+
amd64: {
|
|
699
|
+
binaryPath: "typos.exe",
|
|
700
|
+
contentType: "zip",
|
|
701
|
+
hash: "f13426420749fae31136e15a245c8eb144d6d3d681b3300d54d1a129999a140d",
|
|
702
|
+
url: "https://github.com/crate-ci/typos/releases/download/v1.40.0/typos-v1.40.0-x86_64-pc-windows-msvc.zip"
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
tag: "v1.40.0",
|
|
707
|
+
type: "github"
|
|
618
708
|
}
|
|
619
709
|
};
|
|
620
710
|
|
|
621
711
|
// src/datamitsu-config/apps.ts
|
|
622
712
|
var appState = appState_default;
|
|
623
713
|
var mapOfApps = {
|
|
714
|
+
actionlint: {
|
|
715
|
+
binary: {
|
|
716
|
+
binaries: appState.actionlint?.binaries || {}
|
|
717
|
+
}
|
|
718
|
+
},
|
|
624
719
|
commitlint: {
|
|
625
720
|
shell: {
|
|
626
721
|
args: [facts().env.DATAMITSU_APP_COMMITLINT_BINARY_FILEPATH || ""],
|
|
@@ -740,6 +835,11 @@ var mapOfApps = {
|
|
|
740
835
|
name: "node"
|
|
741
836
|
}
|
|
742
837
|
},
|
|
838
|
+
typos: {
|
|
839
|
+
binary: {
|
|
840
|
+
binaries: appState.typos?.binaries || {}
|
|
841
|
+
}
|
|
842
|
+
},
|
|
743
843
|
typst: {
|
|
744
844
|
binary: {
|
|
745
845
|
binaries: appState.typst?.binaries || {}
|
|
@@ -763,7 +863,7 @@ var mapOfApps = {
|
|
|
763
863
|
|
|
764
864
|
// package.json
|
|
765
865
|
var name = "@shibanet0/datamitsu-config";
|
|
766
|
-
var version = "0.0.1-alpha-
|
|
866
|
+
var version = "0.0.1-alpha-5";
|
|
767
867
|
|
|
768
868
|
// src/datamitsu-config/env.ts
|
|
769
869
|
var env = () => {
|
|
@@ -1072,6 +1172,7 @@ var init = {
|
|
|
1072
1172
|
"GitHub.vscode-pull-request-github",
|
|
1073
1173
|
"johnsoncodehk.vscode-tsconfig-helper",
|
|
1074
1174
|
"streetsidesoftware.code-spell-checker",
|
|
1175
|
+
"tekumara.typos-vscode",
|
|
1075
1176
|
"usernamehw.errorlens",
|
|
1076
1177
|
...config.recommendations || []
|
|
1077
1178
|
])
|
|
@@ -1241,6 +1342,7 @@ var init = {
|
|
|
1241
1342
|
"syncpack",
|
|
1242
1343
|
"type-fest",
|
|
1243
1344
|
"@octokit/rest",
|
|
1345
|
+
"publint",
|
|
1244
1346
|
"sort-package-json",
|
|
1245
1347
|
"eslint-config-prettier",
|
|
1246
1348
|
"eslint-plugin-array-func",
|
|
@@ -1314,15 +1416,16 @@ var init = {
|
|
|
1314
1416
|
commands: {
|
|
1315
1417
|
...existing?.["pre-commit"]?.commands,
|
|
1316
1418
|
[`${facts().packageName}-fix`]: {
|
|
1317
|
-
priority:
|
|
1419
|
+
priority: 1,
|
|
1318
1420
|
run: `${facts().binaryCommand} fix {staged_files}`,
|
|
1319
1421
|
stage_fixed: true
|
|
1320
1422
|
},
|
|
1321
1423
|
[`${facts().packageName}-lint`]: {
|
|
1322
|
-
priority:
|
|
1424
|
+
priority: 2,
|
|
1323
1425
|
run: `${facts().binaryCommand} lint`
|
|
1324
1426
|
}
|
|
1325
|
-
}
|
|
1427
|
+
},
|
|
1428
|
+
parallel: false
|
|
1326
1429
|
}
|
|
1327
1430
|
});
|
|
1328
1431
|
},
|
|
@@ -1353,7 +1456,14 @@ var init = {
|
|
|
1353
1456
|
...data.scripts,
|
|
1354
1457
|
...isRoot ? {
|
|
1355
1458
|
postinstall: env().DATAMITSU_DEV_MODE ? "pnpm build:lib && pnpm datamitsu init" : "datamitsu init"
|
|
1356
|
-
} : {}
|
|
1459
|
+
} : {},
|
|
1460
|
+
...env().DATAMITSU_DEV_MODE ? {
|
|
1461
|
+
fix: "pnpm datamitsu fix",
|
|
1462
|
+
lint: "pnpm datamitsu lint"
|
|
1463
|
+
} : {
|
|
1464
|
+
fix: "datamitsu fix",
|
|
1465
|
+
lint: "datamitsu lint"
|
|
1466
|
+
}
|
|
1357
1467
|
},
|
|
1358
1468
|
syncpack: void 0,
|
|
1359
1469
|
type: "module",
|
|
@@ -1,4 +1,109 @@
|
|
|
1
1
|
export declare const config: {
|
|
2
|
-
|
|
2
|
+
rules: {
|
|
3
|
+
"body-leading-blank": readonly [import("@commitlint/types").RuleConfigSeverity.Warning, "always"];
|
|
4
|
+
"body-max-line-length": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "always", 100];
|
|
5
|
+
"footer-leading-blank": readonly [import("@commitlint/types").RuleConfigSeverity.Warning, "always"];
|
|
6
|
+
"footer-max-line-length": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "always", 100];
|
|
7
|
+
"header-max-length": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "always", 100];
|
|
8
|
+
"header-trim": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "always"];
|
|
9
|
+
"subject-case": [import("@commitlint/types").RuleConfigSeverity, import("@commitlint/types").RuleConfigCondition, import("@commitlint/types").TargetCaseType[]];
|
|
10
|
+
"subject-empty": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "never"];
|
|
11
|
+
"subject-full-stop": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "never", "."];
|
|
12
|
+
"type-case": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "always", "lower-case"];
|
|
13
|
+
"type-empty": readonly [import("@commitlint/types").RuleConfigSeverity.Error, "never"];
|
|
14
|
+
"type-enum": [import("@commitlint/types").RuleConfigSeverity, import("@commitlint/types").RuleConfigCondition, string[]];
|
|
15
|
+
};
|
|
16
|
+
prompt: {
|
|
17
|
+
questions: {
|
|
18
|
+
type: {
|
|
19
|
+
description: string;
|
|
20
|
+
enum: {
|
|
21
|
+
feat: {
|
|
22
|
+
description: string;
|
|
23
|
+
title: string;
|
|
24
|
+
emoji: string;
|
|
25
|
+
};
|
|
26
|
+
fix: {
|
|
27
|
+
description: string;
|
|
28
|
+
title: string;
|
|
29
|
+
emoji: string;
|
|
30
|
+
};
|
|
31
|
+
docs: {
|
|
32
|
+
description: string;
|
|
33
|
+
title: string;
|
|
34
|
+
emoji: string;
|
|
35
|
+
};
|
|
36
|
+
style: {
|
|
37
|
+
description: string;
|
|
38
|
+
title: string;
|
|
39
|
+
emoji: string;
|
|
40
|
+
};
|
|
41
|
+
refactor: {
|
|
42
|
+
description: string;
|
|
43
|
+
title: string;
|
|
44
|
+
emoji: string;
|
|
45
|
+
};
|
|
46
|
+
perf: {
|
|
47
|
+
description: string;
|
|
48
|
+
title: string;
|
|
49
|
+
emoji: string;
|
|
50
|
+
};
|
|
51
|
+
test: {
|
|
52
|
+
description: string;
|
|
53
|
+
title: string;
|
|
54
|
+
emoji: string;
|
|
55
|
+
};
|
|
56
|
+
build: {
|
|
57
|
+
description: string;
|
|
58
|
+
title: string;
|
|
59
|
+
emoji: string;
|
|
60
|
+
};
|
|
61
|
+
ci: {
|
|
62
|
+
description: string;
|
|
63
|
+
title: string;
|
|
64
|
+
emoji: string;
|
|
65
|
+
};
|
|
66
|
+
chore: {
|
|
67
|
+
description: string;
|
|
68
|
+
title: string;
|
|
69
|
+
emoji: string;
|
|
70
|
+
};
|
|
71
|
+
revert: {
|
|
72
|
+
description: string;
|
|
73
|
+
title: string;
|
|
74
|
+
emoji: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
scope: {
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
subject: {
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
body: {
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
isBreaking: {
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
breakingBody: {
|
|
91
|
+
description: string;
|
|
92
|
+
};
|
|
93
|
+
breaking: {
|
|
94
|
+
description: string;
|
|
95
|
+
};
|
|
96
|
+
isIssueAffected: {
|
|
97
|
+
description: string;
|
|
98
|
+
};
|
|
99
|
+
issuesBody: {
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
issues: {
|
|
103
|
+
description: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
3
107
|
formatter: string;
|
|
108
|
+
parserPreset: string;
|
|
4
109
|
};
|
package/dist/commitlint/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// src/commitlint/index.ts
|
|
2
|
-
import "@commitlint/config-conventional";
|
|
2
|
+
import configConventional from "@commitlint/config-conventional";
|
|
3
3
|
import "@commitlint/types";
|
|
4
4
|
var config = {
|
|
5
|
-
|
|
6
|
-
formatter: "@commitlint/format"
|
|
5
|
+
...configConventional,
|
|
6
|
+
formatter: import.meta.resolve("@commitlint/format"),
|
|
7
|
+
parserPreset: import.meta.resolve("conventional-changelog-conventionalcommits")
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
config
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shibanet0/datamitsu-config",
|
|
3
|
-
"version": "0.0.1-alpha-
|
|
3
|
+
"version": "0.0.1-alpha-5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,10 +59,11 @@
|
|
|
59
59
|
"build:lib:datamitsu-types:1": "echo \"// prettier-ignore\" > src/datamitsu-config/datamitsu.d.ts && datamitsu config types >> src/datamitsu-config/datamitsu.d.ts",
|
|
60
60
|
"build:lib:datamitsu-types:2": "echo \"// prettier-ignore\" > scripts/datamitsu.d.ts && datamitsu config types >> scripts/datamitsu.d.ts",
|
|
61
61
|
"datamitsu": "DATAMITSU_DEV_MODE=true DATAMITSU_PACKAGE_NAME=\"./dist\" bin/datamitsu.mjs --binary-command \"node bin/datamitsu.mjs\"",
|
|
62
|
+
"fix": "pnpm datamitsu fix",
|
|
62
63
|
"preinstall": "npx only-allow@1.2.2 pnpm",
|
|
63
64
|
"postinstall": "pnpm build:lib && pnpm datamitsu init",
|
|
64
65
|
"knip": "knip",
|
|
65
|
-
"lint": "
|
|
66
|
+
"lint": "pnpm datamitsu lint",
|
|
66
67
|
"pull": "tsx scripts/pull.ts",
|
|
67
68
|
"temp:publish": "npm publish --tag next --access public"
|
|
68
69
|
},
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
"@eslint/js": "9.39.2",
|
|
78
79
|
"@prettier/plugin-xml": "3.4.2",
|
|
79
80
|
"@typescript/native-preview": "7.0.0-dev.20251215.1",
|
|
81
|
+
"conventional-changelog-conventionalcommits": "9.1.0",
|
|
80
82
|
"eslint": "9.39.2",
|
|
81
83
|
"eslint-config-prettier": "10.1.8",
|
|
82
84
|
"eslint-plugin-array-func": "5.1.0",
|
|
@@ -108,6 +110,7 @@
|
|
|
108
110
|
"prettier-plugin-embed": "0.5.0",
|
|
109
111
|
"prettier-plugin-jsdoc": "1.8.0",
|
|
110
112
|
"prettier-plugin-sql": "0.19.2",
|
|
113
|
+
"publint": "0.3.16",
|
|
111
114
|
"sort-package-json": "3.6.0",
|
|
112
115
|
"syncpack": "14.0.0-alpha.32",
|
|
113
116
|
"tsup": "8.5.1",
|