@lemonadecms/create 0.1.0 → 0.1.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +16 -0
  3. package/bin/create-lemonade.mjs +8 -6
  4. package/dist/catalog.json +193 -25
  5. package/dist/templates/angular/locks/npm-lock.json.template +2 -2
  6. package/dist/templates/angular/locks/pnpm-lock.yaml.template +14 -11
  7. package/dist/templates/angular/locks/yarn.lock.template +4899 -0
  8. package/dist/templates/angular/package.json +8 -1
  9. package/dist/templates/angular/vendor/README.md +32 -0
  10. package/dist/templates/angular/vendor/picomatch-4.0.7-lemonade-sec51.1.tgz +0 -0
  11. package/dist/templates/angular/vendor/picomatch-4.0.7.patch +59 -0
  12. package/dist/templates/angular/vendor/provenance.json +29 -0
  13. package/dist/templates/astro/locks/npm-lock.json.template +4 -4
  14. package/dist/templates/astro/locks/pnpm-lock.yaml.template +22 -15
  15. package/dist/templates/astro/locks/yarn.lock.template +4085 -0
  16. package/dist/templates/astro/package.json +10 -1
  17. package/dist/templates/astro/vendor/README.md +32 -0
  18. package/dist/templates/astro/vendor/picomatch-2.3.2-lemonade-sec51.1.tgz +0 -0
  19. package/dist/templates/astro/vendor/picomatch-2.3.2.patch +59 -0
  20. package/dist/templates/astro/vendor/picomatch-4.0.7-lemonade-sec51.1.tgz +0 -0
  21. package/dist/templates/astro/vendor/picomatch-4.0.7.patch +59 -0
  22. package/dist/templates/astro/vendor/provenance.json +43 -0
  23. package/dist/templates/next/locks/yarn.lock.template +775 -0
  24. package/dist/templates/nuxt/locks/npm-lock.json.template +6 -6
  25. package/dist/templates/nuxt/locks/pnpm-lock.yaml.template +33 -28
  26. package/dist/templates/nuxt/locks/yarn.lock.template +6915 -0
  27. package/dist/templates/nuxt/package.json +13 -1
  28. package/dist/templates/nuxt/vendor/README.md +32 -0
  29. package/dist/templates/nuxt/vendor/picomatch-2.3.2-lemonade-sec51.1.tgz +0 -0
  30. package/dist/templates/nuxt/vendor/picomatch-2.3.2.patch +59 -0
  31. package/dist/templates/nuxt/vendor/picomatch-4.0.7-lemonade-sec51.1.tgz +0 -0
  32. package/dist/templates/nuxt/vendor/picomatch-4.0.7.patch +59 -0
  33. package/dist/templates/nuxt/vendor/provenance.json +43 -0
  34. package/dist/templates/shared/GETTING_STARTED.md +3 -3
  35. package/dist/templates/shared/gitignore.template +3 -0
  36. package/dist/templates/shared/yarnrc.yml.template +2 -0
  37. package/package.json +1 -1
  38. package/src/arguments.mjs +23 -3
  39. package/src/catalog.mjs +35 -3
  40. package/src/prompts.mjs +7 -4
@@ -50,12 +50,19 @@
50
50
  "sharp"
51
51
  ],
52
52
  "overrides": {
53
- "@oxc-parser/binding-wasm32-wasi>@napi-rs/wasm-runtime": "1.2.5"
53
+ "@oxc-parser/binding-wasm32-wasi>@napi-rs/wasm-runtime": "1.2.5",
54
+ "picomatch@4.0.7": "file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz"
54
55
  }
55
56
  },
56
57
  "overrides": {
57
58
  "@oxc-parser/binding-wasm32-wasi": {
58
59
  "@napi-rs/wasm-runtime": "1.2.5"
59
60
  }
61
+ },
62
+ "resolutions": {
63
+ "@oxc-parser/binding-wasm32-wasi/@napi-rs/wasm-runtime": "1.2.5",
64
+ "picomatch@npm:4.0.7": "file:./vendor/picomatch-4.0.7-lemonade-sec51.1.tgz",
65
+ "picomatch@npm:^4.0.4": "file:./vendor/picomatch-4.0.7-lemonade-sec51.1.tgz",
66
+ "picomatch@npm:^4.0.7": "file:./vendor/picomatch-4.0.7-lemonade-sec51.1.tgz"
60
67
  }
61
68
  }
@@ -0,0 +1,32 @@
1
+ # Local picomatch security backports
2
+
3
+ These archives contain Lemonade's SEC-51 parser backports for
4
+ [GHSA-fc5q-39xc-vjpf](https://github.com/advisories/GHSA-fc5q-39xc-vjpf), not an
5
+ upstream patched release. Each retains the original package name/version and MIT
6
+ license. No install hook modifies node_modules. Keep this directory with the app.
7
+
8
+ Use the supplied frozen lock (`npm ci` or `pnpm install --frozen-lockfile`). npm
9
+ locks bind each transitive occurrence directly to its local archive/integrity;
10
+ pnpm additionally uses exact-version local overrides. Updating dependencies or
11
+ regenerating locks requires reviewing all picomatch resolutions. Ordinary npm
12
+ audit tools still identify the original upstream versions as affected.
13
+
14
+ Simple single-branch repeated wildcard patterns retain matching behavior without
15
+ nested unbounded quantifiers. Unsafe complex wildcard/capture patterns use
16
+ picomatch's existing literal fallback; their former complex/capture semantics
17
+ are intentionally unavailable. Quoted/escaped stars and ordinary globs retain
18
+ their behavior. The existing explicit `maxExtglobRecursion: false` disables safety;
19
+ never use it with untrusted patterns.
20
+
21
+ `provenance.json` records original npm SRI/SHA-256, parser/patch/output hashes and
22
+ inspected upstream PR heads. The original archives are obtainable from npm's
23
+ `picomatch` registry record for that exact version. Verify their SRI before
24
+ applying the included single-file patches to `package/lib/parse.js`. Every other
25
+ file, including package metadata and license, remains byte-identical. The
26
+ repository's `scripts/security/picomatch_backports.py` rebuilds canonical tar/gzip
27
+ outputs with sorted names, fixed modes, zero timestamps and no links.
28
+
29
+ Upstream PRs 237 and 246 were open and unmerged when inspected. Replace these
30
+ local backports only with a reviewed upstream fix qualified against this app's
31
+ actual framework and both package managers. Regenerate and review locks together;
32
+ do not silently remove the patch or rename its version to bypass an advisory.
@@ -0,0 +1,59 @@
1
+ --- a/lib/parse.js
2
+ +++ b/lib/parse.js
3
+ @@ -284,6 +284,33 @@
4
+ return depth;
5
+ };
6
+
7
+ +// Lemonade SEC-51 backport: preserve simple repeated-star languages without
8
+ +// nesting unbounded quantifiers. Other bare-star shapes use the existing risky
9
+ +// extglob literal fallback. Quoted/escaped/class stars are not wildcard stars.
10
+ +const analyzeSingleStarBranch = (branch, options) => {
11
+ + let quoted = false;
12
+ + let escaped = false;
13
+ + let bracket = false;
14
+ + let wildcard = false;
15
+ +
16
+ + for (let i = 0; i < branch.length; i++) {
17
+ + const ch = branch[i];
18
+ + if (escaped) { escaped = false; continue; }
19
+ + if (ch === '\\') { escaped = true; continue; }
20
+ + if (ch === '"' && !bracket) { quoted = !quoted; continue; }
21
+ + if (quoted) continue;
22
+ + if (ch === '[') { bracket = true; continue; }
23
+ + if (ch === ']' && bracket) { bracket = false; continue; }
24
+ + if (!bracket && ch === '*' && branch[i + 1] !== '(') wildcard = true;
25
+ + }
26
+ +
27
+ + if (!wildcard) return null;
28
+ + if (options.capture === true || branch.includes('**') || /[\\/"?()[\]{}|!+@]/.test(branch)) {
29
+ + return { risky: true };
30
+ + }
31
+ + return { risky: false, collapse: true };
32
+ +};
33
+ +
34
+ const analyzeRepeatedExtglob = (body, options) => {
35
+ if (options.maxExtglobRecursion === false) {
36
+ return { risky: false };
37
+ @@ -341,6 +368,11 @@
38
+ return combinable
39
+ ? { risky: true, safeOutput: buildCharClassStar([...new Set(safeChars)]) }
40
+ : { risky: true };
41
+ + }
42
+ +
43
+ + if (branches.length === 1) {
44
+ + const single = analyzeSingleStarBranch(branches[0], options);
45
+ + if (single) return single;
46
+ }
47
+
48
+ return { risky: false };
49
+ @@ -565,6 +597,10 @@
50
+ return;
51
+ }
52
+
53
+ + if (analysis.collapse === true && (token.type === 'plus' || token.type === 'star')) {
54
+ + token.close = token.type === 'plus' ? ')' : ')?';
55
+ + }
56
+ +
57
+ let output = token.close + (opts.capture ? ')' : '');
58
+ let rest;
59
+
@@ -0,0 +1,29 @@
1
+ {
2
+ "advisory": "GHSA-fc5q-39xc-vjpf",
3
+ "upstream_fixes": [
4
+ {
5
+ "url": "https://github.com/micromatch/picomatch/pull/237",
6
+ "head": "1bf0d04563cb9ce568cf36efc5f6b7187d9911d5"
7
+ },
8
+ {
9
+ "url": "https://github.com/micromatch/picomatch/pull/246",
10
+ "head": "f03bec2c02e46f063fbfdc161aae1d0f854b2565"
11
+ }
12
+ ],
13
+ "packages": [
14
+ {
15
+ "name": "picomatch",
16
+ "version": "4.0.7",
17
+ "upstream": "upstream/picomatch-4.0.7.tgz",
18
+ "upstream_sha256": "697b463be3cdbd9ffc8f4194fd5019a69ddf95875fb703d78b2b115cc9e740a8",
19
+ "upstream_integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
20
+ "patch": "patches/picomatch-4.0.7.patch",
21
+ "patch_sha256": "ed1fe75757af96f132a2adb63d12376994e1d9582e8c6e7dd9741ecae9ddf9bc",
22
+ "original_parser_sha256": "4e1e05447668aa1e94366c5516a2bcd8f5fff800cc92b1d0cd7d77703b8618c4",
23
+ "patched_parser_sha256": "01c40acfda6f7c40a32dd4e6671cbec1c70e22f980cda8b22ea64d948a323c0c",
24
+ "archive": "archives/picomatch-4.0.7-lemonade-sec51.1.tgz",
25
+ "archive_sha256": "a0af57ad2de1444dbb70588db2444e906a47a5bd77c5150905cbfd6de02d636c",
26
+ "archive_integrity": "sha512-jkjudKn+93rODxiTonD3ehUEbHrHtSWpYcdZglbGGSbbc/Aqjz6j3R/1m0uuQJQXqFY/WZTtv9F+ZSM3ZCSrdA=="
27
+ }
28
+ ]
29
+ }
@@ -2047,8 +2047,8 @@
2047
2047
  },
2048
2048
  "node_modules/anymatch/node_modules/picomatch": {
2049
2049
  "version": "2.3.2",
2050
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
2051
- "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
2050
+ "resolved": "file:vendor/picomatch-2.3.2-lemonade-sec51.1.tgz",
2051
+ "integrity": "sha512-7zQO4hSvfvH7CcUPXD8tFo7X0Yh3gUgifS8by7hrbggrQO4yYoCkkY3BopG7HcxQ51dKtrk2a8h5KyBe8SyxKw==",
2052
2052
  "license": "MIT",
2053
2053
  "engines": {
2054
2054
  "node": ">=8.6"
@@ -3698,8 +3698,8 @@
3698
3698
  },
3699
3699
  "node_modules/picomatch": {
3700
3700
  "version": "4.0.7",
3701
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
3702
- "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
3701
+ "resolved": "file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz",
3702
+ "integrity": "sha512-jkjudKn+93rODxiTonD3ehUEbHrHtSWpYcdZglbGGSbbc/Aqjz6j3R/1m0uuQJQXqFY/WZTtv9F+ZSM3ZCSrdA==",
3703
3703
  "license": "MIT",
3704
3704
  "engines": {
3705
3705
  "node": ">=12"
@@ -4,6 +4,10 @@ settings:
4
4
  autoInstallPeers: true
5
5
  excludeLinksFromLockfile: false
6
6
 
7
+ overrides:
8
+ picomatch@2.3.2: file:vendor/picomatch-2.3.2-lemonade-sec51.1.tgz
9
+ picomatch@4.0.7: file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz
10
+
7
11
  importers:
8
12
 
9
13
  .:
@@ -1037,6 +1041,7 @@ packages:
1037
1041
 
1038
1042
  fdir@6.5.0:
1039
1043
  resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
1044
+ version: 6.5.0
1040
1045
  engines: {node: '>=12.0.0'}
1041
1046
  peerDependencies:
1042
1047
  picomatch: ^3 || ^4
@@ -1330,12 +1335,14 @@ packages:
1330
1335
  picocolors@1.1.1:
1331
1336
  resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
1332
1337
 
1333
- picomatch@2.3.2:
1334
- resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==}
1338
+ picomatch@file:vendor/picomatch-2.3.2-lemonade-sec51.1.tgz:
1339
+ resolution: {integrity: sha512-7zQO4hSvfvH7CcUPXD8tFo7X0Yh3gUgifS8by7hrbggrQO4yYoCkkY3BopG7HcxQ51dKtrk2a8h5KyBe8SyxKw==, tarball: file:vendor/picomatch-2.3.2-lemonade-sec51.1.tgz}
1340
+ version: 2.3.2
1335
1341
  engines: {node: '>=8.6'}
1336
1342
 
1337
- picomatch@4.0.7:
1338
- resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==}
1343
+ picomatch@file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz:
1344
+ resolution: {integrity: sha512-jkjudKn+93rODxiTonD3ehUEbHrHtSWpYcdZglbGGSbbc/Aqjz6j3R/1m0uuQJQXqFY/WZTtv9F+ZSM3ZCSrdA==, tarball: file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz}
1345
+ version: 4.0.7
1339
1346
  engines: {node: '>=12'}
1340
1347
 
1341
1348
  postcss@8.5.33:
@@ -1909,7 +1916,7 @@ snapshots:
1909
1916
  dependencies:
1910
1917
  '@types/hast': 3.0.5
1911
1918
  '@types/mdast': 4.0.4
1912
- picomatch: 4.0.7
1919
+ picomatch: file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz
1913
1920
  retext-smartypants: 6.2.0
1914
1921
  shiki: 4.6.0
1915
1922
  smol-toml: 1.9.1
@@ -1920,7 +1927,7 @@ snapshots:
1920
1927
  dependencies:
1921
1928
  '@types/hast': 3.0.5
1922
1929
  '@types/mdast': 4.0.4
1923
- picomatch: 4.0.7
1930
+ picomatch: file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz
1924
1931
  retext-smartypants: 6.2.0
1925
1932
  shiki: 4.6.0
1926
1933
  smol-toml: 1.9.1
@@ -2529,7 +2536,7 @@ snapshots:
2529
2536
  anymatch@3.1.3:
2530
2537
  dependencies:
2531
2538
  normalize-path: 3.0.0
2532
- picomatch: 2.3.2
2539
+ picomatch: file:vendor/picomatch-2.3.2-lemonade-sec51.1.tgz
2533
2540
 
2534
2541
  argparse@3.0.4: {}
2535
2542
 
@@ -2571,7 +2578,7 @@ snapshots:
2571
2578
  p-queue: 10.0.0
2572
2579
  package-manager-detector: 1.9.0
2573
2580
  piccolore: 0.1.3
2574
- picomatch: 4.0.7
2581
+ picomatch: file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz
2575
2582
  rolldown: 1.3.2
2576
2583
  shiki: 4.6.0
2577
2584
  smol-toml: 1.9.1
@@ -2769,9 +2776,9 @@ snapshots:
2769
2776
  dependencies:
2770
2777
  fast-string-width: 3.0.2
2771
2778
 
2772
- fdir@6.5.0(picomatch@4.0.7):
2779
+ fdir@6.5.0(picomatch@file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz):
2773
2780
  optionalDependencies:
2774
- picomatch: 4.0.7
2781
+ picomatch: file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz
2775
2782
 
2776
2783
  flattie@1.1.1: {}
2777
2784
 
@@ -3033,9 +3040,9 @@ snapshots:
3033
3040
 
3034
3041
  picocolors@1.1.1: {}
3035
3042
 
3036
- picomatch@2.3.2: {}
3043
+ picomatch@file:vendor/picomatch-2.3.2-lemonade-sec51.1.tgz: {}
3037
3044
 
3038
- picomatch@4.0.7: {}
3045
+ picomatch@file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz: {}
3039
3046
 
3040
3047
  postcss@8.5.33:
3041
3048
  dependencies:
@@ -3265,8 +3272,8 @@ snapshots:
3265
3272
 
3266
3273
  tinyglobby@0.2.17:
3267
3274
  dependencies:
3268
- fdir: 6.5.0(picomatch@4.0.7)
3269
- picomatch: 4.0.7
3275
+ fdir: 6.5.0(picomatch@file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz)
3276
+ picomatch: file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz
3270
3277
 
3271
3278
  tinyps@0.5.2: {}
3272
3279
 
@@ -3364,7 +3371,7 @@ snapshots:
3364
3371
  vite@8.3.8(@types/node@24.10.1)(yaml@2.9.1):
3365
3372
  dependencies:
3366
3373
  lightningcss: 1.33.0
3367
- picomatch: 4.0.7
3374
+ picomatch: file:vendor/picomatch-4.0.7-lemonade-sec51.1.tgz
3368
3375
  postcss: 8.5.33
3369
3376
  rolldown: 1.2.19
3370
3377
  tinyglobby: 0.2.17