@shibanet0/datamitsu-config 0.0.1-alpha-4 → 0.0.1-alpha-6
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
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,58 @@ 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";
|
|
867
|
+
var dependencies = {
|
|
868
|
+
"@antebudimir/eslint-plugin-vanilla-extract": "1.16.0",
|
|
869
|
+
"@commitlint/cli": "20.2.0",
|
|
870
|
+
"@commitlint/config-conventional": "20.2.0",
|
|
871
|
+
"@commitlint/format": "20.2.0",
|
|
872
|
+
"@commitlint/types": "20.2.0",
|
|
873
|
+
"@datamitsu/datamitsu": "0.0.1-alpha-13",
|
|
874
|
+
"@eslint/config-helpers": "0.5.0",
|
|
875
|
+
"@eslint/js": "9.39.2",
|
|
876
|
+
"@prettier/plugin-xml": "3.4.2",
|
|
877
|
+
"@typescript/native-preview": "7.0.0-dev.20251215.1",
|
|
878
|
+
"conventional-changelog-conventionalcommits": "9.1.0",
|
|
879
|
+
eslint: "9.39.2",
|
|
880
|
+
"eslint-config-prettier": "10.1.8",
|
|
881
|
+
"eslint-plugin-array-func": "5.1.0",
|
|
882
|
+
"eslint-plugin-import": "2.32.0",
|
|
883
|
+
"eslint-plugin-json": "4.0.1",
|
|
884
|
+
"eslint-plugin-json-schema-validator": "5.5.0",
|
|
885
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
886
|
+
"eslint-plugin-n": "17.23.1",
|
|
887
|
+
"eslint-plugin-no-use-extend-native": "0.7.2",
|
|
888
|
+
"eslint-plugin-perfectionist": "4.15.1",
|
|
889
|
+
"eslint-plugin-playwright": "2.4.0",
|
|
890
|
+
"eslint-plugin-promise": "7.2.1",
|
|
891
|
+
"eslint-plugin-react": "7.37.5",
|
|
892
|
+
"eslint-plugin-react-hooks": "7.0.1",
|
|
893
|
+
"eslint-plugin-react-perf": "3.3.3",
|
|
894
|
+
"eslint-plugin-react-prefer-function-component": "5.0.0",
|
|
895
|
+
"eslint-plugin-react-refresh": "0.4.26",
|
|
896
|
+
"eslint-plugin-security": "3.0.1",
|
|
897
|
+
"eslint-plugin-sonarjs": "3.0.5",
|
|
898
|
+
"eslint-plugin-storybook": "10.1.10",
|
|
899
|
+
"eslint-plugin-toml": "0.12.0",
|
|
900
|
+
"eslint-plugin-turbo": "2.6.3",
|
|
901
|
+
"eslint-plugin-unicorn": "62.0.0",
|
|
902
|
+
"eslint-plugin-unused-imports": "4.3.0",
|
|
903
|
+
"eslint-plugin-yaml": "1.1.3",
|
|
904
|
+
"eslint-plugin-yml": "1.19.1",
|
|
905
|
+
knip: "5.75.1",
|
|
906
|
+
prettier: "3.7.4",
|
|
907
|
+
"prettier-plugin-embed": "0.5.0",
|
|
908
|
+
"prettier-plugin-jsdoc": "1.8.0",
|
|
909
|
+
"prettier-plugin-sql": "0.19.2",
|
|
910
|
+
publint: "0.3.16",
|
|
911
|
+
"sort-package-json": "3.6.0",
|
|
912
|
+
syncpack: "14.0.0-alpha.32",
|
|
913
|
+
tsup: "8.5.1",
|
|
914
|
+
tsx: "4.21.0",
|
|
915
|
+
"type-fest": "5.3.1",
|
|
916
|
+
"typescript-eslint": "8.50.0"
|
|
917
|
+
};
|
|
767
918
|
|
|
768
919
|
// src/datamitsu-config/env.ts
|
|
769
920
|
var env = () => {
|
|
@@ -881,6 +1032,24 @@ var ignoreGroups = {
|
|
|
881
1032
|
]
|
|
882
1033
|
};
|
|
883
1034
|
|
|
1035
|
+
// src/datamitsu-config/utils/cleanDependencies.ts
|
|
1036
|
+
var cleanDependencies = (deps) => {
|
|
1037
|
+
if (env().DATAMITSU_DEV_MODE) {
|
|
1038
|
+
return deps;
|
|
1039
|
+
}
|
|
1040
|
+
if (!deps) return;
|
|
1041
|
+
const excludeDependencyNameList = [...Object.keys(dependencies), "typescript"];
|
|
1042
|
+
return Object.entries(deps).reduce(
|
|
1043
|
+
(acc, [name2, version2]) => {
|
|
1044
|
+
if (!excludeDependencyNameList.includes(name2)) {
|
|
1045
|
+
acc[name2] = version2;
|
|
1046
|
+
}
|
|
1047
|
+
return acc;
|
|
1048
|
+
},
|
|
1049
|
+
{}
|
|
1050
|
+
);
|
|
1051
|
+
};
|
|
1052
|
+
|
|
884
1053
|
// src/datamitsu-config/cmdInit.ts
|
|
885
1054
|
var init = {
|
|
886
1055
|
".dockerignore": {
|
|
@@ -1072,6 +1241,7 @@ var init = {
|
|
|
1072
1241
|
"GitHub.vscode-pull-request-github",
|
|
1073
1242
|
"johnsoncodehk.vscode-tsconfig-helper",
|
|
1074
1243
|
"streetsidesoftware.code-spell-checker",
|
|
1244
|
+
"tekumara.typos-vscode",
|
|
1075
1245
|
"usernamehw.errorlens",
|
|
1076
1246
|
...config.recommendations || []
|
|
1077
1247
|
])
|
|
@@ -1241,6 +1411,7 @@ var init = {
|
|
|
1241
1411
|
"syncpack",
|
|
1242
1412
|
"type-fest",
|
|
1243
1413
|
"@octokit/rest",
|
|
1414
|
+
"publint",
|
|
1244
1415
|
"sort-package-json",
|
|
1245
1416
|
"eslint-config-prettier",
|
|
1246
1417
|
"eslint-plugin-array-func",
|
|
@@ -1314,15 +1485,16 @@ var init = {
|
|
|
1314
1485
|
commands: {
|
|
1315
1486
|
...existing?.["pre-commit"]?.commands,
|
|
1316
1487
|
[`${facts().packageName}-fix`]: {
|
|
1317
|
-
priority:
|
|
1488
|
+
priority: 1,
|
|
1318
1489
|
run: `${facts().binaryCommand} fix {staged_files}`,
|
|
1319
1490
|
stage_fixed: true
|
|
1320
1491
|
},
|
|
1321
1492
|
[`${facts().packageName}-lint`]: {
|
|
1322
|
-
priority:
|
|
1493
|
+
priority: 2,
|
|
1323
1494
|
run: `${facts().binaryCommand} lint`
|
|
1324
1495
|
}
|
|
1325
|
-
}
|
|
1496
|
+
},
|
|
1497
|
+
parallel: false
|
|
1326
1498
|
}
|
|
1327
1499
|
});
|
|
1328
1500
|
},
|
|
@@ -1344,33 +1516,42 @@ var init = {
|
|
|
1344
1516
|
"package.json": {
|
|
1345
1517
|
content: ({ existingContent, isRoot }) => {
|
|
1346
1518
|
const data = JSON.parse(existingContent || "{}");
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
...data.scripts,
|
|
1354
|
-
...isRoot ? {
|
|
1355
|
-
postinstall: env().DATAMITSU_DEV_MODE ? "pnpm build:lib && pnpm datamitsu init" : "datamitsu init"
|
|
1356
|
-
} : {}
|
|
1357
|
-
},
|
|
1358
|
-
syncpack: void 0,
|
|
1359
|
-
type: "module",
|
|
1360
|
-
...typeof data.config === "object" ? {
|
|
1361
|
-
config: {
|
|
1362
|
-
...data.config,
|
|
1363
|
-
syncpack: void 0
|
|
1364
|
-
}
|
|
1519
|
+
const config = {
|
|
1520
|
+
...data,
|
|
1521
|
+
scripts: {
|
|
1522
|
+
...data.scripts,
|
|
1523
|
+
...isRoot ? {
|
|
1524
|
+
postinstall: env().DATAMITSU_DEV_MODE ? "pnpm build:lib && pnpm datamitsu init" : "datamitsu init"
|
|
1365
1525
|
} : {},
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1526
|
+
...env().DATAMITSU_DEV_MODE ? {
|
|
1527
|
+
fix: "pnpm datamitsu fix",
|
|
1528
|
+
lint: "pnpm datamitsu lint"
|
|
1529
|
+
} : {
|
|
1530
|
+
fix: "datamitsu fix",
|
|
1531
|
+
lint: "datamitsu lint"
|
|
1369
1532
|
}
|
|
1370
1533
|
},
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1534
|
+
type: "module",
|
|
1535
|
+
...typeof data.config === "object" ? {
|
|
1536
|
+
config: {
|
|
1537
|
+
...data.config,
|
|
1538
|
+
syncpack: void 0
|
|
1539
|
+
}
|
|
1540
|
+
} : {},
|
|
1541
|
+
dependencies: cleanDependencies(data.dependencies),
|
|
1542
|
+
devDependencies: {
|
|
1543
|
+
...cleanDependencies(data.devDependencies),
|
|
1544
|
+
...env().DATAMITSU_DEV_MODE ? {} : { [name]: version }
|
|
1545
|
+
},
|
|
1546
|
+
optionalDependencies: cleanDependencies(data.optionalDependencies),
|
|
1547
|
+
peerDependencies: cleanDependencies(data.peerDependencies),
|
|
1548
|
+
...{
|
|
1549
|
+
eslintConfig: void 0,
|
|
1550
|
+
prettier: void 0,
|
|
1551
|
+
syncpack: void 0
|
|
1552
|
+
}
|
|
1553
|
+
};
|
|
1554
|
+
return JSON.stringify(config, null, 2);
|
|
1374
1555
|
},
|
|
1375
1556
|
projectTypes: ["npm-package"]
|
|
1376
1557
|
},
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// src/clean-package/index.ts
|
|
2
|
+
import { readFileSync, writeFileSync } from "fs";
|
|
3
|
+
import { resolve } from "path";
|
|
4
|
+
var DEFAULT_FIELDS_TO_REMOVE = [
|
|
5
|
+
"scripts",
|
|
6
|
+
"devDependencies",
|
|
7
|
+
"packageManager"
|
|
8
|
+
];
|
|
9
|
+
var cleanPackage = (options = {}) => {
|
|
10
|
+
const {
|
|
11
|
+
packagePath = "package.json",
|
|
12
|
+
fieldsToRemove = DEFAULT_FIELDS_TO_REMOVE,
|
|
13
|
+
dryRun = false
|
|
14
|
+
} = options;
|
|
15
|
+
const absolutePath = resolve(process.cwd(), packagePath);
|
|
16
|
+
try {
|
|
17
|
+
const packageJson = JSON.parse(readFileSync(absolutePath, "utf-8"));
|
|
18
|
+
const cleaned = { ...packageJson };
|
|
19
|
+
for (const field of fieldsToRemove) {
|
|
20
|
+
delete cleaned[field];
|
|
21
|
+
}
|
|
22
|
+
if (dryRun) {
|
|
23
|
+
console.log("Dry run - would remove fields:", fieldsToRemove);
|
|
24
|
+
console.log("Cleaned package.json:", JSON.stringify(cleaned, null, 2));
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
writeFileSync(absolutePath, JSON.stringify(cleaned, null, 2) + "\n", "utf-8");
|
|
28
|
+
console.log(`\u2713 Cleaned ${packagePath}, removed fields:`, fieldsToRemove);
|
|
29
|
+
} catch (error) {
|
|
30
|
+
console.error(`Error cleaning package.json:`, error);
|
|
31
|
+
throw error;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var main = () => {
|
|
35
|
+
cleanPackage();
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
cleanPackage,
|
|
39
|
+
main
|
|
40
|
+
};
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cleanDependencies: (deps: Partial<Record<string, string>> | undefined) => Partial<Record<string, string>> | undefined;
|
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-6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,13 +37,19 @@
|
|
|
37
37
|
"import": {
|
|
38
38
|
"types": "./dist/type-fest/index.d.ts"
|
|
39
39
|
}
|
|
40
|
+
},
|
|
41
|
+
"./clean-package": {
|
|
42
|
+
"import": {
|
|
43
|
+
"types": "./dist/clean-package/index.d.ts",
|
|
44
|
+
"default": "./dist/clean-package/index.js"
|
|
45
|
+
}
|
|
40
46
|
}
|
|
41
47
|
},
|
|
42
48
|
"bin": {
|
|
49
|
+
"clean-package": "bin/clean-package.mjs",
|
|
43
50
|
"datamitsu": "bin/datamitsu.mjs",
|
|
44
51
|
"tsc": "bin/tsc.mjs",
|
|
45
|
-
"tsx": "bin/tsx.mjs"
|
|
46
|
-
"tsx2": "bin/tsx.mjs"
|
|
52
|
+
"tsx": "bin/tsx.mjs"
|
|
47
53
|
},
|
|
48
54
|
"files": [
|
|
49
55
|
"datamitsu.js",
|
|
@@ -51,32 +57,18 @@
|
|
|
51
57
|
"dist/**",
|
|
52
58
|
"bin/**"
|
|
53
59
|
],
|
|
54
|
-
"scripts": {
|
|
55
|
-
"build": "pnpm build:lib && tsup && tsgo --emitDeclarationOnly",
|
|
56
|
-
"build:datamitsu-config": "tsup --config ./tsup.config.datamitsu.ts && mv dist-datamitsu-config/main.js datamitsu.js",
|
|
57
|
-
"build:lib": "pnpm build:lib:datamitsu-types && pnpm build:datamitsu-config",
|
|
58
|
-
"build:lib:datamitsu-types": "pnpm build:lib:datamitsu-types:1 && pnpm build:lib:datamitsu-types:2",
|
|
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
|
-
"build:lib:datamitsu-types:2": "echo \"// prettier-ignore\" > scripts/datamitsu.d.ts && datamitsu config types >> scripts/datamitsu.d.ts",
|
|
61
|
-
"datamitsu": "DATAMITSU_DEV_MODE=true DATAMITSU_PACKAGE_NAME=\"./dist\" bin/datamitsu.mjs --binary-command \"node bin/datamitsu.mjs\"",
|
|
62
|
-
"preinstall": "npx only-allow@1.2.2 pnpm",
|
|
63
|
-
"postinstall": "pnpm build:lib && pnpm datamitsu init",
|
|
64
|
-
"knip": "knip",
|
|
65
|
-
"lint": "tsgo --noEmit",
|
|
66
|
-
"pull": "tsx scripts/pull.ts",
|
|
67
|
-
"temp:publish": "npm publish --tag next --access public"
|
|
68
|
-
},
|
|
69
60
|
"dependencies": {
|
|
70
61
|
"@antebudimir/eslint-plugin-vanilla-extract": "1.16.0",
|
|
71
62
|
"@commitlint/cli": "20.2.0",
|
|
72
63
|
"@commitlint/config-conventional": "20.2.0",
|
|
73
64
|
"@commitlint/format": "20.2.0",
|
|
74
65
|
"@commitlint/types": "20.2.0",
|
|
75
|
-
"@datamitsu/datamitsu": "0.0.1-alpha-
|
|
66
|
+
"@datamitsu/datamitsu": "0.0.1-alpha-16",
|
|
76
67
|
"@eslint/config-helpers": "0.5.0",
|
|
77
68
|
"@eslint/js": "9.39.2",
|
|
78
69
|
"@prettier/plugin-xml": "3.4.2",
|
|
79
70
|
"@typescript/native-preview": "7.0.0-dev.20251215.1",
|
|
71
|
+
"conventional-changelog-conventionalcommits": "9.1.0",
|
|
80
72
|
"eslint": "9.39.2",
|
|
81
73
|
"eslint-config-prettier": "10.1.8",
|
|
82
74
|
"eslint-plugin-array-func": "5.1.0",
|
|
@@ -108,16 +100,12 @@
|
|
|
108
100
|
"prettier-plugin-embed": "0.5.0",
|
|
109
101
|
"prettier-plugin-jsdoc": "1.8.0",
|
|
110
102
|
"prettier-plugin-sql": "0.19.2",
|
|
103
|
+
"publint": "0.3.16",
|
|
111
104
|
"sort-package-json": "3.6.0",
|
|
112
105
|
"syncpack": "14.0.0-alpha.32",
|
|
113
106
|
"tsup": "8.5.1",
|
|
114
107
|
"tsx": "4.21.0",
|
|
115
108
|
"type-fest": "5.3.1",
|
|
116
109
|
"typescript-eslint": "8.50.0"
|
|
117
|
-
}
|
|
118
|
-
"devDependencies": {
|
|
119
|
-
"@octokit/rest": "22.0.1",
|
|
120
|
-
"@types/node": "25.0.2"
|
|
121
|
-
},
|
|
122
|
-
"packageManager": "pnpm@10.20.0"
|
|
110
|
+
}
|
|
123
111
|
}
|