breakaway 1.4.0-main.11 → 1.4.0-main.13
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 +1 -1
- package/src/cli-version.js +2 -2
- package/src/repos.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "breakaway",
|
|
3
|
-
"version": "1.4.0-main.
|
|
3
|
+
"version": "1.4.0-main.13",
|
|
4
4
|
"description": "The task board for you and your coding agents: a Cloudflare Worker, its web app, Taskwarrior sync, and the CLI (npx breakaway).",
|
|
5
5
|
"license": "FSL-1.1-Apache-2.0",
|
|
6
6
|
"type": "module",
|
package/src/cli-version.js
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* and how to update it. scripts/tasks/version.test.js fails when the copied files change and this doesn't:
|
|
5
5
|
* so it lives in the board's package (CLD-135) and the CLI imports it from here.
|
|
6
6
|
*/
|
|
7
|
-
export const CLI_VERSION =
|
|
8
|
-
export const CLI_FINGERPRINT = '
|
|
7
|
+
export const CLI_VERSION = 67;
|
|
8
|
+
export const CLI_FINGERPRINT = 'f7fcc49bb15b11ba';
|
package/src/repos.js
CHANGED
|
@@ -116,6 +116,8 @@ function jsonField(value, what) {
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
const WORKER_NAME = /^[\w.-]{1,100}$/u;
|
|
119
|
+
/** The fields a repository's pipeline has, as `repos modify --pipeline` and Turn on deploys (WEB-13) set it. */
|
|
120
|
+
export const PIPELINE_KEYS = ['workers', 'workflows', 'deployPaths', 'package'];
|
|
119
121
|
const DEPLOY_PATHS_PATH = /^(?!\/)(?!.*\.\.)[\w./-]{1,200}\.json$/u;
|
|
120
122
|
|
|
121
123
|
/**
|
|
@@ -124,11 +126,11 @@ const DEPLOY_PATHS_PATH = /^(?!\/)(?!.*\.\.)[\w./-]{1,200}\.json$/u;
|
|
|
124
126
|
* deploys), `package` (the npm package it releases, BRK-103), or both. `workflows` (deploy, promote, rollback, and
|
|
125
127
|
* release, workflow file names) and `deployPaths` (a JSON file in the repository) are optional.
|
|
126
128
|
*/
|
|
127
|
-
function checkPipeline(pipeline) {
|
|
129
|
+
export function checkPipeline(pipeline) {
|
|
128
130
|
if (!pipeline) return null;
|
|
129
131
|
const known = { workers: ['staging', 'production'], workflows: ['deploy', 'promote', 'rollback', 'release'] };
|
|
130
132
|
for (const key of Object.keys(pipeline)) {
|
|
131
|
-
if (!
|
|
133
|
+
if (!PIPELINE_KEYS.includes(key))
|
|
132
134
|
throw new InputError(
|
|
133
135
|
`pipeline has no "${key.slice(0, 40)}"; it has workers, package, workflows, and deployPaths`,
|
|
134
136
|
);
|