@docupace/pipeline 1.0.126 → 1.0.128

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/.gitignore CHANGED
@@ -100,4 +100,6 @@ failed-tests.json
100
100
 
101
101
  /tmp
102
102
 
103
- .claude
103
+ .claude
104
+
105
+ .run
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.126",
3
+ "version": "1.0.128",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "author": "",
21
21
  "license": "ISC",
22
22
  "dependencies": {
23
- "@changesets/cli": "^2.27.10",
23
+ "@changesets/cli": "2.27.12",
24
24
  "@jest/globals": "^30.1.2",
25
25
  "@docupace/core-client": "^0.1.59",
26
26
  "auth0-deploy-cli": "^8.8.0",
@@ -0,0 +1,3 @@
1
+ allowBuilds:
2
+ esbuild: true
3
+ unrs-resolver: true
@@ -107,6 +107,18 @@ export const appInfo = {
107
107
  },
108
108
  };
109
109
 
110
+ // Standalone apps (own repo, own image, plain-tag revision) don't need a bespoke
111
+ // appInfo entry: deploy-app runs from the app's own repo, so BITBUCKET_REPO_SLUG
112
+ // (set by Bitbucket Pipelines) already names both the repo and the image by convention.
113
+ export const getDefaultAppInfo = (application) => {
114
+ const name = application;
115
+ return {
116
+ repositoryName: name,
117
+ imageName: name,
118
+ deployAttributes: ['image.tag'],
119
+ };
120
+ };
121
+
110
122
  export const getEnvInfo = () => {
111
123
  const envInfo = Object.fromEntries(
112
124
  environments.map((env) => [
@@ -48,6 +48,11 @@ jest.unstable_mockModule('./config.js', () => ({
48
48
  },
49
49
  },
50
50
  getRepUrl: jest.fn(),
51
+ getDefaultAppInfo: jest.fn((application) => ({
52
+ repositoryName: application,
53
+ imageName: application,
54
+ deployAttributes: ['image.tag'],
55
+ })),
51
56
  autoDeployConfigName: 'auto-deploy.yaml',
52
57
  }));
53
58