create-krispya 0.14.0 → 0.16.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/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{create-krispya.Wf4wp5cQ.cjs → create-krispya.D7X3ZrTg.cjs} +6 -1
- package/dist/shared/{create-krispya.BYCdQkPo.mjs → create-krispya.DV9KI0bg.mjs} +6 -1
- package/package.json +7 -8
package/dist/cli.cjs
CHANGED
|
@@ -9,7 +9,7 @@ const node_module = require('node:module');
|
|
|
9
9
|
const node_path = require('node:path');
|
|
10
10
|
const node_process = require('node:process');
|
|
11
11
|
const undici = require('undici');
|
|
12
|
-
const workspace = require('./shared/create-krispya.
|
|
12
|
+
const workspace = require('./shared/create-krispya.D7X3ZrTg.cjs');
|
|
13
13
|
const promises$1 = require('fs/promises');
|
|
14
14
|
const fs = require('fs');
|
|
15
15
|
const path = require('path');
|
package/dist/cli.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { createRequire } from 'node:module';
|
|
|
7
7
|
import { resolve, join, dirname } from 'node:path';
|
|
8
8
|
import { cwd } from 'node:process';
|
|
9
9
|
import { fetch } from 'undici';
|
|
10
|
-
import { g as getEngineName, a as getPackageManagerName, b as getBaseTemplate, s as shouldEnableReactCompiler, c as getLanguageFromTemplate, d as generateRandomName, e as getConfigStrategy, f as getAiPlatforms, A as ALL_AI_PLATFORMS, h as AI_PLATFORM_LABELS, i as AI_PLATFORM_HINTS, j as detectTooling, p as parsePackageManagerSpec, k as parseEngine, l as parseWorkspaceYamlContent, v as validateWorkspace, r as renderTypescriptConfigPackage, m as renderOxlintConfigPackage, n as renderEslintConfigPackage, o as renderOxfmtConfigPackage, q as renderPrettierConfigPackage, t as resolveMonorepoRootPackageVersions, u as getResolvedPackageVersion, w as renderVscodeFiles, x as renderAiFiles, y as renderVscodeFiles$1, z as renderEditorConfig, B as renderGitignore, C as toPrettierIgnoreContent, D as mergePackageJsonScripts, E as getPackageManagerProfile, F as renderPnpmWorkspaceConfig, G as renderViteConfig, H as packageJsonScripts, I as resolveDefaultPackageJsonScripts, J as formatResolvedPackageVersion, K as getSemverMajorString, L as formatPackageManager, M as renderOxlintConfig, N as resolvePackageManager, O as getSemverMajor, P as compareNumericSemver, Q as getPackageDirectoryName, R as planProject, S as resolveProjectPlanInput, T as validatePackageName, U as clearConfig, V as getConfigPath, W as resolveWorkspacePlanInput, X as planWorkspace } from './shared/create-krispya.
|
|
10
|
+
import { g as getEngineName, a as getPackageManagerName, b as getBaseTemplate, s as shouldEnableReactCompiler, c as getLanguageFromTemplate, d as generateRandomName, e as getConfigStrategy, f as getAiPlatforms, A as ALL_AI_PLATFORMS, h as AI_PLATFORM_LABELS, i as AI_PLATFORM_HINTS, j as detectTooling, p as parsePackageManagerSpec, k as parseEngine, l as parseWorkspaceYamlContent, v as validateWorkspace, r as renderTypescriptConfigPackage, m as renderOxlintConfigPackage, n as renderEslintConfigPackage, o as renderOxfmtConfigPackage, q as renderPrettierConfigPackage, t as resolveMonorepoRootPackageVersions, u as getResolvedPackageVersion, w as renderVscodeFiles, x as renderAiFiles, y as renderVscodeFiles$1, z as renderEditorConfig, B as renderGitignore, C as toPrettierIgnoreContent, D as mergePackageJsonScripts, E as getPackageManagerProfile, F as renderPnpmWorkspaceConfig, G as renderViteConfig, H as packageJsonScripts, I as resolveDefaultPackageJsonScripts, J as formatResolvedPackageVersion, K as getSemverMajorString, L as formatPackageManager, M as renderOxlintConfig, N as resolvePackageManager, O as getSemverMajor, P as compareNumericSemver, Q as getPackageDirectoryName, R as planProject, S as resolveProjectPlanInput, T as validatePackageName, U as clearConfig, V as getConfigPath, W as resolveWorkspacePlanInput, X as planWorkspace } from './shared/create-krispya.DV9KI0bg.mjs';
|
|
11
11
|
import { readFile as readFile$1, mkdir as mkdir$1, writeFile as writeFile$1, access as access$1 } from 'fs/promises';
|
|
12
12
|
import { constants as constants$1 } from 'fs';
|
|
13
13
|
import { join as join$1, dirname as dirname$1 } from 'path';
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Y as DEFAULT_MINIMUM_RELEASE_AGE_MINUTES, Z as assignResolvedPackageVersion, U as clearConfig, P as compareNumericSemver, j as detectTooling, _ as formatEngine, $ as formatNodeTypesVersion, L as formatPackageManager, J as formatResolvedPackageVersion, d as generateRandomName, f as getAiPlatforms, b as getBaseTemplate, V as getConfigPath, e as getConfigStrategy, g as getEngineName, a0 as getEngineSpec, c as getLanguageFromTemplate, a1 as getLatestNodeVersion, a2 as getLatestNpmCliVersion, a3 as getLatestNpmMajorVersion, a4 as getLatestNpmMajorVersionAtOrBelow, a5 as getLatestNpmVersion, a6 as getLatestPnpmVersion, a7 as getLatestYarnVersion, Q as getPackageDirectoryName, a8 as getPackageFallbackVersion, a as getPackageManagerName, E as getPackageManagerProfile, a9 as getPackageManagerSpec, u as getResolvedPackageVersion, O as getSemverMajor, K as getSemverMajorString, aa as isPackageManagerName, ab as materializeJobs, ac as merge, k as parseEngine, p as parsePackageManagerSpec, l as parseWorkspaceYamlContent, R as planProject, X as planWorkspace, ad as projectPlanInputToOptions, F as renderPnpmWorkspaceConfig, ae as resolveEngine, t as resolveMonorepoRootPackageVersions, N as resolvePackageManager, af as resolvePackageManagerProfile, ag as resolvePackageVersions, ah as resolveProjectFacts, ai as resolveProjectPackageVersions, S as resolveProjectPlanInput, aj as resolveWorkspaceFacts, W as resolveWorkspacePlanInput, ak as setAiPlatforms, al as setConfigStrategy, s as shouldEnableReactCompiler, am as unique, T as validatePackageName, v as validateWorkspace, an as workspacePlanInputToMonorepoParams } from './shared/create-krispya.
|
|
1
|
+
export { Y as DEFAULT_MINIMUM_RELEASE_AGE_MINUTES, Z as assignResolvedPackageVersion, U as clearConfig, P as compareNumericSemver, j as detectTooling, _ as formatEngine, $ as formatNodeTypesVersion, L as formatPackageManager, J as formatResolvedPackageVersion, d as generateRandomName, f as getAiPlatforms, b as getBaseTemplate, V as getConfigPath, e as getConfigStrategy, g as getEngineName, a0 as getEngineSpec, c as getLanguageFromTemplate, a1 as getLatestNodeVersion, a2 as getLatestNpmCliVersion, a3 as getLatestNpmMajorVersion, a4 as getLatestNpmMajorVersionAtOrBelow, a5 as getLatestNpmVersion, a6 as getLatestPnpmVersion, a7 as getLatestYarnVersion, Q as getPackageDirectoryName, a8 as getPackageFallbackVersion, a as getPackageManagerName, E as getPackageManagerProfile, a9 as getPackageManagerSpec, u as getResolvedPackageVersion, O as getSemverMajor, K as getSemverMajorString, aa as isPackageManagerName, ab as materializeJobs, ac as merge, k as parseEngine, p as parsePackageManagerSpec, l as parseWorkspaceYamlContent, R as planProject, X as planWorkspace, ad as projectPlanInputToOptions, F as renderPnpmWorkspaceConfig, ae as resolveEngine, t as resolveMonorepoRootPackageVersions, N as resolvePackageManager, af as resolvePackageManagerProfile, ag as resolvePackageVersions, ah as resolveProjectFacts, ai as resolveProjectPackageVersions, S as resolveProjectPlanInput, aj as resolveWorkspaceFacts, W as resolveWorkspacePlanInput, ak as setAiPlatforms, al as setConfigStrategy, s as shouldEnableReactCompiler, am as unique, T as validatePackageName, v as validateWorkspace, an as workspacePlanInputToMonorepoParams } from './shared/create-krispya.DV9KI0bg.mjs';
|
|
2
2
|
import 'fs/promises';
|
|
3
3
|
import 'fs';
|
|
4
4
|
import 'path';
|
|
@@ -468,6 +468,9 @@ function getPnpmProfile(spec) {
|
|
|
468
468
|
requirements: getPnpmRequirements(major)
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
|
+
function formatPnpmWorkspaceYamlKey(key) {
|
|
472
|
+
return key.startsWith("@") ? JSON.stringify(key) : key;
|
|
473
|
+
}
|
|
471
474
|
function renderPnpmWorkspaceConfig(options) {
|
|
472
475
|
const {
|
|
473
476
|
profile,
|
|
@@ -489,7 +492,7 @@ function renderPnpmWorkspaceConfig(options) {
|
|
|
489
492
|
if (profile.capabilities.pnpmBuildDependencyPolicy === "allowBuilds") {
|
|
490
493
|
lines.push("allowBuilds:");
|
|
491
494
|
for (const [dependency, allowed] of Object.entries(buildDependencies)) {
|
|
492
|
-
lines.push(` ${dependency}: ${allowed ? "true" : "false"}`);
|
|
495
|
+
lines.push(` ${formatPnpmWorkspaceYamlKey(dependency)}: ${allowed ? "true" : "false"}`);
|
|
493
496
|
}
|
|
494
497
|
} else {
|
|
495
498
|
const allowedDependencies = Object.entries(buildDependencies).filter(([, allowed]) => allowed).map(([dependency]) => dependency);
|
|
@@ -1849,6 +1852,8 @@ const defaultFormatterMetaConfig = {
|
|
|
1849
1852
|
bracketSpacing: true,
|
|
1850
1853
|
arrowParens: "always",
|
|
1851
1854
|
ignorePatterns: [
|
|
1855
|
+
"dist/",
|
|
1856
|
+
"**/dist/",
|
|
1852
1857
|
"package-lock.json",
|
|
1853
1858
|
"npm-shrinkwrap.json",
|
|
1854
1859
|
"pnpm-lock.yaml",
|
|
@@ -461,6 +461,9 @@ function getPnpmProfile(spec) {
|
|
|
461
461
|
requirements: getPnpmRequirements(major)
|
|
462
462
|
};
|
|
463
463
|
}
|
|
464
|
+
function formatPnpmWorkspaceYamlKey(key) {
|
|
465
|
+
return key.startsWith("@") ? JSON.stringify(key) : key;
|
|
466
|
+
}
|
|
464
467
|
function renderPnpmWorkspaceConfig(options) {
|
|
465
468
|
const {
|
|
466
469
|
profile,
|
|
@@ -482,7 +485,7 @@ function renderPnpmWorkspaceConfig(options) {
|
|
|
482
485
|
if (profile.capabilities.pnpmBuildDependencyPolicy === "allowBuilds") {
|
|
483
486
|
lines.push("allowBuilds:");
|
|
484
487
|
for (const [dependency, allowed] of Object.entries(buildDependencies)) {
|
|
485
|
-
lines.push(` ${dependency}: ${allowed ? "true" : "false"}`);
|
|
488
|
+
lines.push(` ${formatPnpmWorkspaceYamlKey(dependency)}: ${allowed ? "true" : "false"}`);
|
|
486
489
|
}
|
|
487
490
|
} else {
|
|
488
491
|
const allowedDependencies = Object.entries(buildDependencies).filter(([, allowed]) => allowed).map(([dependency]) => dependency);
|
|
@@ -1842,6 +1845,8 @@ const defaultFormatterMetaConfig = {
|
|
|
1842
1845
|
bracketSpacing: true,
|
|
1843
1846
|
arrowParens: "always",
|
|
1844
1847
|
ignorePatterns: [
|
|
1848
|
+
"dist/",
|
|
1849
|
+
"**/dist/",
|
|
1845
1850
|
"package-lock.json",
|
|
1846
1851
|
"npm-shrinkwrap.json",
|
|
1847
1852
|
"pnpm-lock.yaml",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-krispya",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "🌹 CLI for creating web projects with (my) sensible defaults",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -28,26 +28,25 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@clack/prompts": "^1.
|
|
31
|
+
"@clack/prompts": "^1.6.0",
|
|
32
32
|
"chalk": "^5.6.2",
|
|
33
33
|
"commander": "^14.0.3",
|
|
34
34
|
"conf": "^15.1.0",
|
|
35
|
-
"ora": "^9.4.
|
|
35
|
+
"ora": "^9.4.1",
|
|
36
36
|
"undici": "^8.5.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^25.9.
|
|
40
|
-
"oxlint": "^1.
|
|
39
|
+
"@types/node": "^25.9.4",
|
|
40
|
+
"oxlint": "^1.71.0",
|
|
41
41
|
"oxlint-tsgolint": "^0.22.1",
|
|
42
|
-
"prettier": "^3.
|
|
42
|
+
"prettier": "^3.9.3",
|
|
43
43
|
"tsx": "^4.22.4",
|
|
44
44
|
"typescript": "^6.0.3",
|
|
45
45
|
"unbuild": "^3.6.1",
|
|
46
46
|
"vitest": "^4.1.9"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
|
-
"
|
|
50
|
-
"node": ">=26.0.0"
|
|
49
|
+
"node": ">=18.12"
|
|
51
50
|
},
|
|
52
51
|
"scripts": {
|
|
53
52
|
"dev": "tsx src/cli.ts",
|