@cluerise/tools 5.3.5 → 5.3.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.
|
@@ -313,9 +313,8 @@ class ToolInitializer {
|
|
|
313
313
|
return toolNameSchema.options.map((option) => option.value);
|
|
314
314
|
}
|
|
315
315
|
async #initCommitlint() {
|
|
316
|
-
const
|
|
317
|
-
const
|
|
318
|
-
const configContent = `export { default } from '${this.#configPackage}/${configName}.js';
|
|
316
|
+
const configPath = "commitlint.config.ts";
|
|
317
|
+
const configContent = `export { default } from '${this.#configPackage}/${configPath}';
|
|
319
318
|
`;
|
|
320
319
|
await FileUtils.createFile(configPath, configContent);
|
|
321
320
|
}
|
|
@@ -358,7 +357,7 @@ class ToolInitializer {
|
|
|
358
357
|
}
|
|
359
358
|
async #initPnpm() {
|
|
360
359
|
const workspacePath = "pnpm-workspace.yaml";
|
|
361
|
-
const workspaceContent = "engineStrict: true\ngitChecks: false\n\npublicHoistPattern:\n - '@commitlint/cli'\n - eslint\n - lint-staged\n - prettier\n - prettier-plugin-sh\n";
|
|
360
|
+
const workspaceContent = "engineStrict: true\ngitChecks: false\nincludeWorkspaceRoot: true\n\npublicHoistPattern:\n - '@commitlint/cli'\n - eslint\n - lint-staged\n - prettier\n - prettier-plugin-sh\n";
|
|
362
361
|
await FileUtils.createFile(workspacePath, workspaceContent);
|
|
363
362
|
}
|
|
364
363
|
async #initPrettier() {
|
|
@@ -409,7 +408,7 @@ export default createReleaseConfig(${JsonUtils.prettify(configParams)});
|
|
|
409
408
|
}
|
|
410
409
|
async #initVSCode() {
|
|
411
410
|
const settingsPath = Path.join(".vscode", "settings.json");
|
|
412
|
-
const settingsContent = '{\n "editor.codeActionsOnSave": {\n "source.fixAll.eslint": "explicit"\n },\n "typescript.tsdk": "node_modules/typescript/lib"\n}\n';
|
|
411
|
+
const settingsContent = '{\n "editor.codeActionsOnSave": {\n "source.fixAll.eslint": "explicit"\n },\n "typescript.tsdk": "node_modules/typescript/lib",\n "javascript.preferences.importModuleSpecifier": "relative",\n "javascript.preferences.importModuleSpecifierEnding": "js",\n "typescript.preferences.importModuleSpecifier": "relative",\n "typescript.preferences.importModuleSpecifierEnding": "js",\n "typescript.preferences.preferTypeOnlyAutoImports": true\n}\n';
|
|
413
412
|
await FileUtils.createFile(settingsPath, settingsContent);
|
|
414
413
|
}
|
|
415
414
|
/**
|