@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.
@@ -7,8 +7,8 @@
7
7
  "isolatedModules": true,
8
8
  "jsx": "preserve",
9
9
  "lib": ["esnext"],
10
- "module": "esnext",
11
- "moduleResolution": "bundler",
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.string(),
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.string(),
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.string(),
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.string(),
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.string(),
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.string(),
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.string(),
42
+ description: z.ostring(),
43
43
  engines: enginesSchema.optional(),
44
44
  repository: repositorySchema.optional()
45
45
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cluerise/tools",
3
- "version": "5.0.1",
3
+ "version": "5.1.0",
4
4
  "description": "Tools for maintaining TypeScript projects.",
5
5
  "author": "Branislav Holý <brano@holy.am>",
6
6
  "repository": "github:cluerise/tools",