@shibanet0/datamitsu-config 0.0.1-alpha-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/README.md +1 -0
- package/bin/datamitsu.mjs +46 -0
- package/bin/tsc.mjs +20 -0
- package/bin/tsx.mjs +16 -0
- package/datamitsu.js +1671 -0
- package/dist/binary/index.js +0 -0
- package/dist/commitlint/index.js +10 -0
- package/dist/datamitsu-config/ignore.d.ts +1 -0
- package/dist/eslint/index.d.ts +2 -0
- package/dist/eslint/index.js +66 -0
- package/dist/eslint/plugins/perfectionist.d.ts +2 -0
- package/dist/eslint/types.d.ts +88 -0
- package/dist/knip/index.d.ts +3 -0
- package/dist/knip/index.js +8 -0
- package/dist/lint-staged/index.js +0 -0
- package/dist/perfectionist-YHPWKMW3.js +80 -0
- package/dist/prettier/index.d.ts +2 -0
- package/dist/prettier/index.js +12 -0
- package/dist/syncpack/index.d.ts +2 -0
- package/dist/syncpack/index.js +22 -0
- package/dist/type-fest/index.d.ts +1 -0
- package/dist/type-fest/index.js +0 -0
- package/package.json +126 -0
- package/tsconfig/base.json +33 -0
- package/tsconfig/library.json +10 -0
- package/tsconfig/nextjs.json +23 -0
- package/tsconfig/react-library.json +13 -0
- package/tsconfig/service.json +6 -0
- package/tsconfig/shared-library.json +9 -0
- package/tsconfig/shared-react-library.json +10 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# datamitsu-config
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { spawn } from "child_process";
|
|
4
|
+
import { join } from "path";
|
|
5
|
+
|
|
6
|
+
const args = process.argv.slice(2);
|
|
7
|
+
|
|
8
|
+
if (!args.includes("--binary-command")) {
|
|
9
|
+
args.unshift("--binary-command", "datamitsu");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const child = spawn(
|
|
13
|
+
"node",
|
|
14
|
+
[
|
|
15
|
+
join(import.meta.dirname, "../node_modules/@datamitsu/datamitsu/bin/index.js"),
|
|
16
|
+
"--config",
|
|
17
|
+
join(import.meta.dirname, "../datamitsu.js"),
|
|
18
|
+
...args,
|
|
19
|
+
],
|
|
20
|
+
{
|
|
21
|
+
env: {
|
|
22
|
+
...process.env,
|
|
23
|
+
DATAMITSU_APP_COMMITLINT_BINARY_FILEPATH: join(import.meta.dirname, "../node_modules/@commitlint/cli/cli.js"),
|
|
24
|
+
DATAMITSU_APP_ESLINT_BINARY_FILEPATH: join(import.meta.dirname, "../node_modules/eslint/bin/eslint.js"),
|
|
25
|
+
DATAMITSU_APP_KNIP_BINARY_FILEPATH: join(import.meta.dirname, "../node_modules/knip/bin/knip.js"),
|
|
26
|
+
DATAMITSU_APP_PRETTIER_BINARY_FILEPATH: join(import.meta.dirname, "../node_modules/prettier/bin/prettier.cjs"),
|
|
27
|
+
DATAMITSU_APP_SORT_PACKAGE_JSON_BINARY_FILEPATH: join(
|
|
28
|
+
import.meta.dirname,
|
|
29
|
+
"../node_modules/sort-package-json/cli.js",
|
|
30
|
+
),
|
|
31
|
+
DATAMITSU_APP_SYNCPACK_BINARY_FILEPATH: join(import.meta.dirname, "../node_modules/syncpack/index.cjs"),
|
|
32
|
+
DATAMITSU_APP_TSC_BINARY_FILEPATH: join(
|
|
33
|
+
import.meta.dirname,
|
|
34
|
+
"../node_modules/@typescript/native-preview/bin/tsgo.js",
|
|
35
|
+
),
|
|
36
|
+
DATAMITSU_PACKAGE_NAME: process.env.DATAMITSU_PACKAGE_NAME || "@shibanet0/datamitsu-config",
|
|
37
|
+
},
|
|
38
|
+
stdio: "inherit",
|
|
39
|
+
},
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
child.on("exit", (code) => {
|
|
43
|
+
if (code !== 0) {
|
|
44
|
+
process.exit(code);
|
|
45
|
+
}
|
|
46
|
+
});
|
package/bin/tsc.mjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { spawn } from "child_process";
|
|
4
|
+
import { join } from "path";
|
|
5
|
+
|
|
6
|
+
const args = process.argv.slice(2);
|
|
7
|
+
|
|
8
|
+
const child = spawn(
|
|
9
|
+
"node",
|
|
10
|
+
[join(import.meta.dirname, "../node_modules/@typescript/native-preview/bin/tsgo.js"), ...args],
|
|
11
|
+
{
|
|
12
|
+
stdio: "inherit",
|
|
13
|
+
},
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
child.on("exit", (code) => {
|
|
17
|
+
if (code !== 0) {
|
|
18
|
+
process.exit(code);
|
|
19
|
+
}
|
|
20
|
+
});
|
package/bin/tsx.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { spawn } from "child_process";
|
|
4
|
+
import { join } from "path";
|
|
5
|
+
|
|
6
|
+
const args = process.argv.slice(2);
|
|
7
|
+
|
|
8
|
+
const child = spawn("node", [join(import.meta.dirname, "../node_modules/tsx/dist/cli.mjs"), ...args], {
|
|
9
|
+
stdio: "inherit",
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
child.on("exit", (code) => {
|
|
13
|
+
if (code !== 0) {
|
|
14
|
+
process.exit(code);
|
|
15
|
+
}
|
|
16
|
+
});
|