@forge/cli-shared 0.0.0-experimental-c3d0263 → 0.0.0-experimental-869511d

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/CHANGELOG.md CHANGED
@@ -1,26 +1,219 @@
1
1
  # @forge/cli-shared
2
2
 
3
- ## 0.0.0-experimental-c3d0263
3
+ ## 0.0.0-experimental-869511d
4
+
5
+ ### Minor Changes
6
+
7
+ - f33aada: Fix vulnerability dependencies
8
+ - 726ef79: Fix dependency vulnerabilities
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies [d094c69]
13
+ - Updated dependencies [ba67459]
14
+ - Updated dependencies [f3ac287]
15
+ - Updated dependencies [d196b41]
16
+ - Updated dependencies [e411a29]
17
+ - Updated dependencies [0accde8]
18
+ - Updated dependencies [a3bfe81]
19
+ - Updated dependencies [02839be]
20
+ - Updated dependencies [ffb508a]
21
+ - @forge/manifest@0.0.0-experimental-869511d
22
+
23
+ ## 2.4.0-next.7
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [f3ac287]
28
+ - Updated dependencies [0accde8]
29
+ - Updated dependencies [ffb508a]
30
+ - @forge/manifest@3.5.0-next.6
31
+
32
+ ## 2.4.0-next.6
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [d196b41]
37
+ - @forge/manifest@3.5.0-next.5
38
+
39
+ ## 2.4.0-next.5
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies [e411a29]
44
+ - @forge/manifest@3.5.0-next.4
45
+
46
+ ## 2.4.0-next.4
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies [d094c69]
51
+ - @forge/manifest@3.5.0-next.3
52
+
53
+ ## 2.4.0-next.3
54
+
55
+ ### Minor Changes
56
+
57
+ - f33aada8: Fix vulnerability dependencies
58
+ - 726ef79d: Fix dependency vulnerabilities
59
+
60
+ ## 2.3.2-next.2
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [02839be]
65
+ - @forge/manifest@3.5.0-next.2
66
+
67
+ ## 2.3.2-next.1
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [a3bfe81]
72
+ - @forge/manifest@3.5.0-next.1
73
+
74
+ ## 2.3.2-next.0
75
+
76
+ ### Patch Changes
77
+
78
+ - Updated dependencies [ba674590]
79
+ - @forge/manifest@3.5.0-next.0
80
+
81
+ ## 2.3.1
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies [64dd525]
86
+ - Updated dependencies [8e2c90f]
87
+ - Updated dependencies [1c6c578]
88
+ - Updated dependencies [8b4fede]
89
+ - Updated dependencies [54bf134]
90
+ - Updated dependencies [10f147f]
91
+ - Updated dependencies [2484683]
92
+ - Updated dependencies [1a8a4bb]
93
+ - Updated dependencies [e0a44d4]
94
+ - Updated dependencies [19820d3]
95
+ - Updated dependencies [1ca8bbc]
96
+ - @forge/manifest@3.4.0
97
+
98
+ ## 2.3.1-next.9
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies [19820d3]
103
+ - @forge/manifest@3.4.0-next.9
104
+
105
+ ## 2.3.1-next.8
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies [8e2c90f]
110
+ - @forge/manifest@3.4.0-next.8
111
+
112
+ ## 2.3.1-next.7
113
+
114
+ ### Patch Changes
115
+
116
+ - Updated dependencies [e0a44d40]
117
+ - @forge/manifest@3.4.0-next.7
118
+
119
+ ## 2.3.1-next.6
120
+
121
+ ### Patch Changes
122
+
123
+ - Updated dependencies [1ca8bbc9]
124
+ - @forge/manifest@3.4.0-next.6
125
+
126
+ ## 2.3.1-next.5
127
+
128
+ ### Patch Changes
129
+
130
+ - Updated dependencies [1c6c578]
131
+ - @forge/manifest@3.4.0-next.5
132
+
133
+ ## 2.3.1-next.4
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies [64dd525]
138
+ - Updated dependencies [10f147f]
139
+ - @forge/manifest@3.4.0-next.4
140
+
141
+ ## 2.3.1-next.3
142
+
143
+ ### Patch Changes
144
+
145
+ - Updated dependencies [1a8a4bb]
146
+ - @forge/manifest@3.3.1-next.3
147
+
148
+ ## 2.3.1-next.2
149
+
150
+ ### Patch Changes
151
+
152
+ - Updated dependencies [8b4fede]
153
+ - @forge/manifest@3.3.1-next.2
154
+
155
+ ## 2.3.1-next.1
156
+
157
+ ### Patch Changes
158
+
159
+ - Updated dependencies [24846832]
160
+ - @forge/manifest@3.3.1-next.1
161
+
162
+ ## 2.3.1-next.0
163
+
164
+ ### Patch Changes
165
+
166
+ - Updated dependencies [54bf134]
167
+ - @forge/manifest@3.3.1-next.0
168
+
169
+ ## 2.3.0
4
170
 
5
171
  ### Minor Changes
6
172
 
7
173
  - 949bd40: The @forge/cli will now download templates from a new service (previously bitbucket), old versions of the CLI won't receive template updates
174
+ - cf2420d: Added root package.json and lock files to app bundle.
8
175
 
9
176
  ### Patch Changes
10
177
 
178
+ - 47a71a6: Upgrade graphql-request for node 16 compatibility
11
179
  - Updated dependencies [88e57a12]
180
+ - Updated dependencies [fcd9580]
12
181
  - Updated dependencies [6c44d2b]
13
182
  - Updated dependencies [e95919f]
14
183
  - Updated dependencies [e822a8a]
184
+ - Updated dependencies [720953f]
15
185
  - Updated dependencies [2420378]
16
186
  - Updated dependencies [051ed1f]
17
187
  - Updated dependencies [ad94136]
188
+ - Updated dependencies [e65d33e]
18
189
  - Updated dependencies [ae111cd]
19
190
  - Updated dependencies [8e35955]
20
191
  - Updated dependencies [c255b24]
21
192
  - Updated dependencies [f894871]
22
- - @forge/util@0.0.0-experimental-c3d0263
23
- - @forge/manifest@0.0.0-experimental-c3d0263
193
+ - @forge/util@1.2.0
194
+ - @forge/manifest@3.3.0
195
+
196
+ ## 2.3.0-next.11
197
+
198
+ ### Patch Changes
199
+
200
+ - Updated dependencies [720953f]
201
+ - @forge/manifest@3.3.0-next.9
202
+
203
+ ## 2.3.0-next.10
204
+
205
+ ### Patch Changes
206
+
207
+ - 47a71a62: Upgrade graphql-request for node 16 compatibility
208
+ - Updated dependencies [fcd95803]
209
+ - Updated dependencies [e65d33e6]
210
+ - @forge/manifest@3.3.0-next.8
211
+
212
+ ## 2.3.0-next.9
213
+
214
+ ### Minor Changes
215
+
216
+ - cf2420d2: Added root package.json and lock files to app bundle.
24
217
 
25
218
  ## 2.3.0-next.8
26
219
 
@@ -30,23 +30,23 @@ class ConfigFile {
30
30
  return functions.map((funcs) => funcs.handler.split('.')[0]);
31
31
  }
32
32
  async readConfig() {
33
- const manifestFileContents = this.fileReader.readFile(_1.manifestFilename);
33
+ const manifestFileContents = this.fileReader.readFile(_1.manifestFileName);
34
34
  try {
35
35
  yaml_1.default.scalarOptions.null.nullStr = '';
36
36
  return yaml_1.parse(manifestFileContents);
37
37
  }
38
38
  catch (_a) {
39
- throw new ui_1.ValidationError(ui_1.Text.artifact.error.invalidYaml(_1.manifestFilename));
39
+ throw new ui_1.ValidationError(ui_1.Text.artifact.error.invalidYaml(_1.manifestFileName));
40
40
  }
41
41
  }
42
42
  async readConfigToDocument() {
43
- const manifestFileContents = this.fileReader.readFile(_1.manifestFilename);
43
+ const manifestFileContents = this.fileReader.readFile(_1.manifestFileName);
44
44
  if (manifestFileContents) {
45
45
  try {
46
46
  return yaml_1.parseDocument(manifestFileContents);
47
47
  }
48
48
  catch (_a) {
49
- throw new ui_1.ValidationError(ui_1.Text.artifact.error.invalidYaml(_1.manifestFilename));
49
+ throw new ui_1.ValidationError(ui_1.Text.artifact.error.invalidYaml(_1.manifestFileName));
50
50
  }
51
51
  }
52
52
  }
@@ -76,18 +76,18 @@ class ConfigFile {
76
76
  return actualModules;
77
77
  }
78
78
  async prependAppNameToModules(name) {
79
- const manifestFileContents = this.fileReader.readFile(_1.manifestFilename);
79
+ const manifestFileContents = this.fileReader.readFile(_1.manifestFileName);
80
80
  const currentConfigDoc = yaml_1.parseDocument(manifestFileContents || '');
81
81
  const modules = currentConfigDoc.get('modules');
82
82
  if (modules && modules.type === util_1.Type.MAP) {
83
83
  const modulesObject = modules.toJSON();
84
84
  const modulesWithUniqueName = this.makeManifestUnique(modulesObject, name);
85
85
  currentConfigDoc.set('modules', modulesWithUniqueName);
86
- this.fileWriter.writeStringToFile(currentConfigDoc.toString(), _1.manifestFilename);
86
+ this.fileWriter.writeStringToFile(currentConfigDoc.toString(), _1.manifestFileName);
87
87
  }
88
88
  }
89
89
  async writeToConfigFile(configKey, config) {
90
- const manifestFileContents = this.fileReader.readFile(_1.manifestFilename);
90
+ const manifestFileContents = this.fileReader.readFile(_1.manifestFileName);
91
91
  const currentConfigDoc = yaml_1.parseDocument(manifestFileContents || '');
92
92
  Object.keys(config).forEach((key) => {
93
93
  if (config[key] === undefined) {
@@ -95,7 +95,7 @@ class ConfigFile {
95
95
  }
96
96
  });
97
97
  currentConfigDoc.set(configKey, config);
98
- this.fileWriter.writeStringToFile(currentConfigDoc.toString(), _1.manifestFilename);
98
+ this.fileWriter.writeStringToFile(currentConfigDoc.toString(), _1.manifestFileName);
99
99
  }
100
100
  getHostedResourceKeys(modules) {
101
101
  const resourceKeys = [];
@@ -1,5 +1,6 @@
1
1
  import { ManifestSchema, Resources } from '@forge/manifest';
2
- export declare const manifestFilename = "manifest.yml";
2
+ export declare const manifestFileName = "manifest.yml";
3
+ export declare const dependencyFileNames: string[];
3
4
  export interface BaseModule {
4
5
  key: string;
5
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5D,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAE/C,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9F,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,gBAAgB,aAAc,GAAG,0BAG7C,CAAC;AAEF,eAAO,MAAM,sBAAsB,WAAY,GAAG,oCAGjD,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5D,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,mBAAmB,UAAuE,CAAC;AAExG,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9F,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,gBAAgB,aAAc,GAAG,0BAG7C,CAAC;AAEF,eAAO,MAAM,sBAAsB,WAAY,GAAG,oCAGjD,CAAC"}
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isHostedResourceModule = exports.validateResource = exports.manifestFilename = void 0;
4
- exports.manifestFilename = 'manifest.yml';
3
+ exports.isHostedResourceModule = exports.validateResource = exports.dependencyFileNames = exports.manifestFileName = void 0;
4
+ exports.manifestFileName = 'manifest.yml';
5
+ exports.dependencyFileNames = [exports.manifestFileName, 'package.json', 'package-lock.json', 'yarn.lock'];
5
6
  exports.validateResource = (resource) => {
6
7
  const { key, path } = resource;
7
8
  return typeof key === 'string' && typeof path === 'string';