@backstage/plugin-scaffolder-backend 1.11.1-next.0 → 1.12.0-next.1
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 +25 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +9 -17
- package/dist/alpha.cjs.js.map +1 -1
- package/dist/index.cjs.js +9 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -7
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-backend
|
|
2
2
|
|
|
3
|
+
## 1.12.0-next.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7d724d8ef56: Added the ability to be able to define an actions `input` and `output` schema using `zod` instead of hand writing types and `jsonschema`
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 52b0022dab7: Updated dependency `msw` to `^1.0.0`.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
- @backstage/errors@1.1.5-next.0
|
|
14
|
+
- @backstage/backend-common@0.18.3-next.1
|
|
15
|
+
- @backstage/catalog-client@1.4.0-next.1
|
|
16
|
+
- @backstage/integration@1.4.3-next.0
|
|
17
|
+
- @backstage/plugin-auth-node@0.2.12-next.1
|
|
18
|
+
- @backstage/plugin-catalog-backend@1.8.0-next.1
|
|
19
|
+
- @backstage/backend-plugin-api@0.4.1-next.1
|
|
20
|
+
- @backstage/backend-tasks@0.4.4-next.1
|
|
21
|
+
- @backstage/config@1.0.7-next.0
|
|
22
|
+
- @backstage/catalog-model@1.2.1-next.1
|
|
23
|
+
- @backstage/types@1.0.2
|
|
24
|
+
- @backstage/plugin-catalog-node@1.3.4-next.1
|
|
25
|
+
- @backstage/plugin-scaffolder-common@1.2.6-next.1
|
|
26
|
+
- @backstage/plugin-scaffolder-node@0.1.1-next.1
|
|
27
|
+
|
|
3
28
|
## 1.11.1-next.0
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.cjs.js
CHANGED
|
@@ -13,6 +13,7 @@ var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node');
|
|
|
13
13
|
var errors = require('@backstage/errors');
|
|
14
14
|
var yaml = require('yaml');
|
|
15
15
|
var fs = require('fs-extra');
|
|
16
|
+
var zod = require('zod');
|
|
16
17
|
var path = require('path');
|
|
17
18
|
var globby = require('globby');
|
|
18
19
|
var isbinaryfile = require('isbinaryfile');
|
|
@@ -39,7 +40,6 @@ var jsonschema = require('jsonschema');
|
|
|
39
40
|
var promClient = require('prom-client');
|
|
40
41
|
var express = require('express');
|
|
41
42
|
var Router = require('express-promise-router');
|
|
42
|
-
var zod = require('zod');
|
|
43
43
|
var url = require('url');
|
|
44
44
|
var os = require('os');
|
|
45
45
|
|
|
@@ -322,24 +322,16 @@ function createCatalogWriteAction() {
|
|
|
322
322
|
return pluginScaffolderNode.createTemplateAction({
|
|
323
323
|
id: id$2,
|
|
324
324
|
description: "Writes the catalog-info.yaml for your template",
|
|
325
|
-
examples: examples$2,
|
|
326
325
|
schema: {
|
|
327
|
-
input: {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
},
|
|
335
|
-
entity: {
|
|
336
|
-
title: "Entity info to write catalog-info.yaml",
|
|
337
|
-
description: "You can provide the same values used in the Entity schema.",
|
|
338
|
-
type: "object"
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
326
|
+
input: zod.z.object({
|
|
327
|
+
filePath: zod.z.string().optional().describe("Defaults to catalog-info.yaml"),
|
|
328
|
+
// TODO: this should reference an zod entity validator if it existed.
|
|
329
|
+
entity: zod.z.object({}).describe(
|
|
330
|
+
"You can provide the same values used in the Entity schema."
|
|
331
|
+
)
|
|
332
|
+
})
|
|
342
333
|
},
|
|
334
|
+
examples: examples$2,
|
|
343
335
|
supportsDryRun: true,
|
|
344
336
|
async handler(ctx) {
|
|
345
337
|
ctx.logStream.write(`Writing catalog-info.yaml`);
|