@uniweb/build 0.14.23 → 0.14.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/build",
3
- "version": "0.14.23",
3
+ "version": "0.14.24",
4
4
  "description": "Build tooling for the Uniweb Component Web Platform",
5
5
  "type": "module",
6
6
  "exports": {
@@ -64,8 +64,8 @@
64
64
  },
65
65
  "optionalDependencies": {
66
66
  "@uniweb/runtime": "0.8.22",
67
- "@uniweb/content-reader": "1.1.12",
68
- "@uniweb/schemas": "0.2.4"
67
+ "@uniweb/schemas": "0.2.4",
68
+ "@uniweb/content-reader": "1.1.12"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
@@ -45,10 +45,13 @@ const adapter = {
45
45
  onProgress('Wrote .nojekyll (opts out of Jekyll on GitHub Pages)')
46
46
  },
47
47
 
48
- async initCi({ site, packageManager = 'pnpm', nodeVersion = '20', domain = null }) {
48
+ // `pnpmVersion` is the pnpm major for the generated CI. The CLI passes the
49
+ // authoritative value (versions.js::PNPM_VERSION); the default here is only a
50
+ // fallback for direct/test callers.
51
+ async initCi({ site, packageManager = 'pnpm', nodeVersion = '20', pnpmVersion = '11', domain = null }) {
49
52
  const sitePath = site.path
50
53
  const workflowPath = `.github/workflows/deploy-github-pages.yml`
51
- const yaml = renderWorkflow({ sitePath, packageManager, nodeVersion, domain })
54
+ const yaml = renderWorkflow({ sitePath, packageManager, nodeVersion, pnpmVersion, domain })
52
55
 
53
56
  const files = [{ path: workflowPath, content: yaml }]
54
57
  if (domain) {
@@ -91,12 +94,12 @@ const adapter = {
91
94
  },
92
95
  }
93
96
 
94
- function renderWorkflow({ sitePath, packageManager, nodeVersion, domain }) {
97
+ function renderWorkflow({ sitePath, packageManager, nodeVersion, pnpmVersion, domain }) {
95
98
  const isPnpm = packageManager === 'pnpm'
96
99
  const setupSteps = isPnpm
97
100
  ? ` - uses: pnpm/action-setup@v4
98
101
  with:
99
- version: 10
102
+ version: ${pnpmVersion}
100
103
  - uses: actions/setup-node@v4
101
104
  with:
102
105
  node-version: '${nodeVersion}'