@stacksjs/actions 0.70.275 → 0.70.277

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 (2) hide show
  1. package/dist/bump.js +1 -1
  2. package/package.json +18 -18
package/dist/bump.js CHANGED
@@ -3,7 +3,7 @@ import{execSync,log,parseOptions}from"@stacksjs/cli";import{path as p}from"@stac
3
3
  `)))content=content.replace(/^(#\s.*\n+)?/,(match)=>`${match??""}## v${nextVersion}
4
4
 
5
5
  `);writeFileSync(changelogPath,content)}await writeChangelog();if(!isDryRun&&isFrameworkRelease)pinLockstepDeps(nextVersion);if(!isDryRun&&existsSync(p.projectPath("bun.lock"))){const lockPath=p.projectPath("bun.lock"),previousLock=readFileSync(lockPath);unlinkSync(lockPath);try{await execSync(["bun","install","--lockfile-only"],{cwd:p.projectPath(),stdin:"inherit"})}catch(error){writeFileSync(lockPath,previousLock);throw error}const expectedLockfileVersion=1,versionMatch=readFileSync(lockPath,"utf8").match(/"lockfileVersion"\s*:\s*(\d+)/),producedVersion=versionMatch?Number(versionMatch[1]):null;if(producedVersion!==expectedLockfileVersion){writeFileSync(lockPath,previousLock);throw Error(`Release aborted: regenerating bun.lock produced lockfileVersion ${producedVersion??"unknown"}, but CI's Bun (1.3.x) requires v${expectedLockfileVersion}. You are releasing with a newer Bun (1.4.x writes v2). Re-run the release with Bun 1.3.x (e.g. via \`bunx bun@1.3.14\`) so CI can parse the lockfile.`)}}function lockstepPackages(version){const names=new Set;for(const entry of readdirSync(p.frameworkPath("core"),{withFileTypes:!0})){if(!entry.isDirectory())continue;const manifest=p.frameworkPath(`core/${entry.name}/package.json`);if(!existsSync(manifest))continue;const pkg=JSON.parse(readFileSync(manifest,"utf-8"));if(pkg.name?.startsWith("@stacksjs/")&&pkg.version===version)names.add(pkg.name)}return names}function pinLockstepDeps(version){const lockstep=lockstepPackages(version),next=`^${version}`,manifests=[p.frameworkPath("core/package.json"),...readdirSync(p.frameworkPath("core"),{withFileTypes:!0}).filter((entry)=>entry.isDirectory()).map((entry)=>p.frameworkPath(`core/${entry.name}/package.json`)).filter((path)=>existsSync(path))];let pinned=0;for(const manifestPath of manifests){const manifest=JSON.parse(readFileSync(manifestPath,"utf-8"));let changed=!1;for(const field of["dependencies","devDependencies"]){const deps=manifest[field];if(!deps)continue;for(const name of Object.keys(deps)){if(!lockstep.has(name)||deps[name].startsWith("workspace:")||deps[name]===next)continue;deps[name]=next;changed=!0;pinned++}}if(changed)writeFileSync(manifestPath,`${JSON.stringify(manifest,null,2)}
6
- `)}if(pinned>0)log.debug(`Pinned ${pinned} lockstep core dep(s) to ^${version}`)}async function stageReleaseArtifacts(){const pathspecs=[":(glob)**/package.json","package.json"];for(const file of["CHANGELOG.md","bun.lock"])if(existsSync(p.projectPath(file)))pathspecs.push(file);await git(["add","--",...pathspecs]);const leftover=(await git(["status","--porcelain"])).split(`
6
+ `)}if(pinned>0)log.debug(`Pinned ${pinned} lockstep core dep(s) to ^${version}`)}async function stageReleaseArtifacts(){const pathspecs=[":(glob)storage/framework/**/package.json","package.json"];for(const file of["CHANGELOG.md","bun.lock"])if(existsSync(p.projectPath(file)))pathspecs.push(file);await git(["add","--",...pathspecs]);const leftover=(await git(["status","--porcelain"])).split(`
7
7
  `).map((line)=>line.trimEnd()).filter((line)=>line&&!line.startsWith("A ")&&!line.startsWith("M "));if(leftover.length)log.warn(`Kept ${leftover.length} change(s) out of the release commit:
8
8
  ${leftover.slice(0,20).join(`
9
9
  `)}${leftover.length>20?`
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/actions",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.275",
5
+ "version": "0.70.277",
6
6
  "description": "The Stacks actions.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -59,33 +59,33 @@
59
59
  "prepublishOnly": "bun run build"
60
60
  },
61
61
  "dependencies": {
62
- "@stacksjs/config": "0.70.275",
62
+ "@stacksjs/config": "0.70.277",
63
63
  "@stacksjs/bumpx": "^0.2.6",
64
64
  "@stacksjs/bunpress": "^0.1.18",
65
65
  "@stacksjs/logsmith": "^0.2.3",
66
- "@stacksjs/registry": "0.70.275",
66
+ "@stacksjs/registry": "0.70.277",
67
67
  "@stacksjs/stx": "^0.2.148",
68
68
  "@stacksjs/ts-cloud": "^0.7.103",
69
69
  "@stacksjs/ts-md": "^0.1.1"
70
70
  },
71
71
  "devDependencies": {
72
- "@stacksjs/api": "0.70.275",
73
- "@stacksjs/cli": "0.70.275",
74
- "@stacksjs/database": "0.70.275",
72
+ "@stacksjs/api": "0.70.277",
73
+ "@stacksjs/cli": "0.70.277",
74
+ "@stacksjs/database": "0.70.277",
75
75
  "@stacksjs/tlsx": "^0.13.2",
76
76
  "better-dx": "^0.2.17",
77
- "@stacksjs/dns": "0.70.275",
78
- "@stacksjs/enums": "0.70.275",
79
- "@stacksjs/env": "0.70.275",
80
- "@stacksjs/error-handling": "0.70.275",
81
- "@stacksjs/image": "0.70.275",
82
- "@stacksjs/logging": "0.70.275",
83
- "@stacksjs/path": "0.70.275",
84
- "@stacksjs/security": "0.70.275",
85
- "@stacksjs/storage": "0.70.275",
86
- "@stacksjs/strings": "0.70.275",
87
- "@stacksjs/utils": "0.70.275",
88
- "@stacksjs/validation": "0.70.275"
77
+ "@stacksjs/dns": "0.70.277",
78
+ "@stacksjs/enums": "0.70.277",
79
+ "@stacksjs/env": "0.70.277",
80
+ "@stacksjs/error-handling": "0.70.277",
81
+ "@stacksjs/image": "0.70.277",
82
+ "@stacksjs/logging": "0.70.277",
83
+ "@stacksjs/path": "0.70.277",
84
+ "@stacksjs/security": "0.70.277",
85
+ "@stacksjs/storage": "0.70.277",
86
+ "@stacksjs/strings": "0.70.277",
87
+ "@stacksjs/utils": "0.70.277",
88
+ "@stacksjs/validation": "0.70.277"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "pickier": "^0.1.35"