@cluerise/tools 5.0.1 → 5.1.0
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/configs/tsconfig.json +2 -2
- package/dist/scripts/check-heroku-node-version/main.js +1 -1
- package/dist/scripts/create-commit-message/main.js +1 -1
- package/dist/scripts/format-commit-message/main.js +1 -1
- package/dist/scripts/init/main.js +3 -3
- package/dist/scripts/lint/main.js +1 -1
- package/dist/scripts/release/main.js +2 -2
- package/dist/scripts/update-node-versions/main.js +1 -1
- package/package.json +1 -1
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"isolatedModules": true,
|
|
8
8
|
"jsx": "preserve",
|
|
9
9
|
"lib": ["esnext"],
|
|
10
|
-
"module": "
|
|
11
|
-
"moduleResolution": "
|
|
10
|
+
"module": "nodenext",
|
|
11
|
+
"moduleResolution": "nodenext",
|
|
12
12
|
"noEmit": true,
|
|
13
13
|
"noUncheckedIndexedAccess": true,
|
|
14
14
|
"noUnusedLocals": true,
|
|
@@ -39,7 +39,7 @@ const repositorySchema = z.union([z.string(), repositoryObjectSchema]);
|
|
|
39
39
|
const packageJsonDataSchema = z.object({
|
|
40
40
|
name: z.string(),
|
|
41
41
|
version: z.string(),
|
|
42
|
-
description: z.
|
|
42
|
+
description: z.ostring(),
|
|
43
43
|
engines: enginesSchema.optional(),
|
|
44
44
|
repository: repositorySchema.optional()
|
|
45
45
|
});
|
|
@@ -17,7 +17,7 @@ const repositorySchema = z.union([z.string(), repositoryObjectSchema]);
|
|
|
17
17
|
z.object({
|
|
18
18
|
name: z.string(),
|
|
19
19
|
version: z.string(),
|
|
20
|
-
description: z.
|
|
20
|
+
description: z.ostring(),
|
|
21
21
|
engines: enginesSchema.optional(),
|
|
22
22
|
repository: repositorySchema.optional()
|
|
23
23
|
});
|
|
@@ -17,7 +17,7 @@ const repositorySchema = z.union([z.string(), repositoryObjectSchema]);
|
|
|
17
17
|
z.object({
|
|
18
18
|
name: z.string(),
|
|
19
19
|
version: z.string(),
|
|
20
|
-
description: z.
|
|
20
|
+
description: z.ostring(),
|
|
21
21
|
engines: enginesSchema.optional(),
|
|
22
22
|
repository: repositorySchema.optional()
|
|
23
23
|
});
|
|
@@ -125,7 +125,7 @@ const repositorySchema = z.union([z.string(), repositoryObjectSchema]);
|
|
|
125
125
|
const packageJsonDataSchema = z.object({
|
|
126
126
|
name: z.string(),
|
|
127
127
|
version: z.string(),
|
|
128
|
-
description: z.
|
|
128
|
+
description: z.ostring(),
|
|
129
129
|
engines: enginesSchema.optional(),
|
|
130
130
|
repository: repositorySchema.optional()
|
|
131
131
|
});
|
|
@@ -315,7 +315,7 @@ class ToolInitializer {
|
|
|
315
315
|
async #initCommitlint() {
|
|
316
316
|
const configName = "commitlint.config";
|
|
317
317
|
const configPath = `${configName}.ts`;
|
|
318
|
-
const configContent = `export { default } from '${this.#configPackage}/${configName}';
|
|
318
|
+
const configContent = `export { default } from '${this.#configPackage}/${configName}.js';
|
|
319
319
|
`;
|
|
320
320
|
await FileUtils.createFile(configPath, configContent);
|
|
321
321
|
}
|
|
@@ -358,7 +358,7 @@ class ToolInitializer {
|
|
|
358
358
|
}
|
|
359
359
|
async #initPnpm() {
|
|
360
360
|
const workspacePath = "pnpm-workspace.yaml";
|
|
361
|
-
const workspaceContent = "engineStrict: true\n\npublicHoistPattern:\n - '@commitlint/cli'\n - eslint\n - lint-staged\n - prettier\n - prettier-plugin-sh\n";
|
|
361
|
+
const workspaceContent = "engineStrict: true\ngitChecks: false\n\npublicHoistPattern:\n - '@commitlint/cli'\n - eslint\n - lint-staged\n - prettier\n - prettier-plugin-sh\n";
|
|
362
362
|
await FileUtils.createFile(workspacePath, workspaceContent);
|
|
363
363
|
}
|
|
364
364
|
async #initPrettier() {
|
|
@@ -99,7 +99,7 @@ const repositorySchema = z.union([z.string(), repositoryObjectSchema]);
|
|
|
99
99
|
z.object({
|
|
100
100
|
name: z.string(),
|
|
101
101
|
version: z.string(),
|
|
102
|
-
description: z.
|
|
102
|
+
description: z.ostring(),
|
|
103
103
|
engines: enginesSchema.optional(),
|
|
104
104
|
repository: repositorySchema.optional()
|
|
105
105
|
});
|
|
@@ -46,7 +46,7 @@ const repositorySchema = z.union([z.string(), repositoryObjectSchema]);
|
|
|
46
46
|
const packageJsonDataSchema = z.object({
|
|
47
47
|
name: z.string(),
|
|
48
48
|
version: z.string(),
|
|
49
|
-
description: z.
|
|
49
|
+
description: z.ostring(),
|
|
50
50
|
engines: enginesSchema.optional(),
|
|
51
51
|
repository: repositorySchema.optional()
|
|
52
52
|
});
|
|
@@ -361,7 +361,7 @@ class Releaser {
|
|
|
361
361
|
await FileSystem.writeFile(this.#changelogPath, newChangelog);
|
|
362
362
|
const linter = new FileLinter({ fix: true });
|
|
363
363
|
await linter.lint([this.#changelogPath]);
|
|
364
|
-
ChildProcess.execFileSync("pnpm", ["version", nextRelease.version, "--no-git-tag-version"]);
|
|
364
|
+
ChildProcess.execFileSync("pnpm", ["version", nextRelease.version, "--allow-same-version", "--no-git-tag-version"]);
|
|
365
365
|
const packageJson = await PackageJson.init();
|
|
366
366
|
return {
|
|
367
367
|
name: packageJson.name,
|
|
@@ -39,7 +39,7 @@ const repositorySchema = z.union([z.string(), repositoryObjectSchema]);
|
|
|
39
39
|
const packageJsonDataSchema = z.object({
|
|
40
40
|
name: z.string(),
|
|
41
41
|
version: z.string(),
|
|
42
|
-
description: z.
|
|
42
|
+
description: z.ostring(),
|
|
43
43
|
engines: enginesSchema.optional(),
|
|
44
44
|
repository: repositorySchema.optional()
|
|
45
45
|
});
|