@backstage/plugin-app-node 0.1.40 → 0.1.42-next.0
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 +17 -0
- package/dist/schema.cjs.js +2 -2
- package/dist/schema.cjs.js.map +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @backstage/plugin-app-node
|
|
2
2
|
|
|
3
|
+
## 0.1.42-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7455dae: Use node prefix on native imports
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/backend-plugin-api@1.7.0-next.0
|
|
10
|
+
- @backstage/config-loader@1.10.8-next.0
|
|
11
|
+
|
|
12
|
+
## 0.1.41
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 9ccf84e: Updated plugin metadata.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @backstage/backend-plugin-api@1.6.1
|
|
19
|
+
|
|
3
20
|
## 0.1.40
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/schema.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var
|
|
4
|
+
var node_path = require('node:path');
|
|
5
5
|
var configLoader = require('@backstage/config-loader');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -9,7 +9,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
10
10
|
|
|
11
11
|
async function loadCompiledConfigSchema(appDistDir) {
|
|
12
|
-
const schemaPath =
|
|
12
|
+
const schemaPath = node_path.resolve(appDistDir, ".config-schema.json");
|
|
13
13
|
if (await fs__default.default.pathExists(schemaPath)) {
|
|
14
14
|
const serializedSchema = await fs__default.default.readJson(schemaPath);
|
|
15
15
|
return await configLoader.loadConfigSchema({
|
package/dist/schema.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.cjs.js","sources":["../src/schema.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport fs from 'fs-extra';\nimport { resolve as resolvePath } from 'path';\nimport { ConfigSchema, loadConfigSchema } from '@backstage/config-loader';\n\n/**\n * Loads the config schema that is embedded in the frontend build.\n *\n * @public\n */\nexport async function loadCompiledConfigSchema(\n appDistDir: string,\n): Promise<ConfigSchema | undefined> {\n const schemaPath = resolvePath(appDistDir, '.config-schema.json');\n if (await fs.pathExists(schemaPath)) {\n const serializedSchema = await fs.readJson(schemaPath);\n\n return await loadConfigSchema({\n serialized: serializedSchema,\n });\n }\n\n return undefined;\n}\n"],"names":["resolvePath","fs","loadConfigSchema"],"mappings":";;;;;;;;;;AAyBA,eAAsB,yBACpB,UAAA,EACmC;AACnC,EAAA,MAAM,UAAA,GAAaA,
|
|
1
|
+
{"version":3,"file":"schema.cjs.js","sources":["../src/schema.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport fs from 'fs-extra';\nimport { resolve as resolvePath } from 'node:path';\nimport { ConfigSchema, loadConfigSchema } from '@backstage/config-loader';\n\n/**\n * Loads the config schema that is embedded in the frontend build.\n *\n * @public\n */\nexport async function loadCompiledConfigSchema(\n appDistDir: string,\n): Promise<ConfigSchema | undefined> {\n const schemaPath = resolvePath(appDistDir, '.config-schema.json');\n if (await fs.pathExists(schemaPath)) {\n const serializedSchema = await fs.readJson(schemaPath);\n\n return await loadConfigSchema({\n serialized: serializedSchema,\n });\n }\n\n return undefined;\n}\n"],"names":["resolvePath","fs","loadConfigSchema"],"mappings":";;;;;;;;;;AAyBA,eAAsB,yBACpB,UAAA,EACmC;AACnC,EAAA,MAAM,UAAA,GAAaA,iBAAA,CAAY,UAAA,EAAY,qBAAqB,CAAA;AAChE,EAAA,IAAI,MAAMC,mBAAA,CAAG,UAAA,CAAW,UAAU,CAAA,EAAG;AACnC,IAAA,MAAM,gBAAA,GAAmB,MAAMA,mBAAA,CAAG,QAAA,CAAS,UAAU,CAAA;AAErD,IAAA,OAAO,MAAMC,6BAAA,CAAiB;AAAA,MAC5B,UAAA,EAAY;AAAA,KACb,CAAA;AAAA,EACH;AAEA,EAAA,OAAO,MAAA;AACT;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-app-node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.42-next.0",
|
|
4
4
|
"description": "Node.js library for the app plugin",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"pluginPackages": [
|
|
9
9
|
"@backstage/plugin-app",
|
|
10
10
|
"@backstage/plugin-app-backend",
|
|
11
|
-
"@backstage/plugin-app-node"
|
|
11
|
+
"@backstage/plugin-app-node",
|
|
12
|
+
"@backstage/plugin-app-react"
|
|
12
13
|
]
|
|
13
14
|
},
|
|
14
15
|
"publishConfig": {
|
|
@@ -36,14 +37,14 @@
|
|
|
36
37
|
"test": "backstage-cli package test"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@backstage/backend-plugin-api": "
|
|
40
|
-
"@backstage/config-loader": "
|
|
40
|
+
"@backstage/backend-plugin-api": "1.7.0-next.0",
|
|
41
|
+
"@backstage/config-loader": "1.10.8-next.0",
|
|
41
42
|
"@types/express": "^4.17.6",
|
|
42
43
|
"express": "^4.22.0",
|
|
43
44
|
"fs-extra": "^11.2.0"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"@backstage/cli": "
|
|
47
|
+
"@backstage/cli": "0.35.3-next.0"
|
|
47
48
|
},
|
|
48
49
|
"typesVersions": {
|
|
49
50
|
"*": {
|