@next-core/build-config-factory 2.18.2 → 2.18.3
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 +11 -0
- package/package.json +2 -2
- package/src/generateProviderContracts.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.18.3](https://github.com/easyops-cn/next-core/compare/@next-core/build-config-factory@2.18.2...@next-core/build-config-factory@2.18.3) (2021-12-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* rename contract.json -> contracts.json ([dc35786](https://github.com/easyops-cn/next-core/commit/dc3578631edb9f79d9d0bb40e61680d1a5d9cf11))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.18.2](https://github.com/easyops-cn/next-core/compare/@next-core/build-config-factory@2.18.1...@next-core/build-config-factory@2.18.2) (2021-12-13)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @next-core/build-config-factory
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/build-config-factory",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.3",
|
|
4
4
|
"description": "build config factory",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/build-config-factory",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"typedoc": "^0.19.2",
|
|
38
38
|
"typedoc-plugin-no-inherit": "^1.2.2"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "b51cbd4b51d3e54a0966c904b86448d5d2484c8e"
|
|
41
41
|
}
|
|
@@ -9,13 +9,13 @@ module.exports = function generateProviderDocsV2(pluginName) {
|
|
|
9
9
|
let contractPath;
|
|
10
10
|
const providersJson = require(path.resolve("providers.json"));
|
|
11
11
|
try {
|
|
12
|
-
contractPath = require.resolve(`${providersJson.sdk}/dist/
|
|
12
|
+
contractPath = require.resolve(`${providersJson.sdk}/dist/contracts.json`, {
|
|
13
13
|
paths: [process.cwd()],
|
|
14
14
|
});
|
|
15
15
|
} catch (error) {
|
|
16
16
|
console.log(
|
|
17
17
|
chalk.yellow(
|
|
18
|
-
`Warning: no
|
|
18
|
+
`Warning: no contracts.json file generated, if need it please execute \`yarn yo-sdk\` for ${providersJson.sdk} and build it later`
|
|
19
19
|
)
|
|
20
20
|
);
|
|
21
21
|
return;
|
|
@@ -37,8 +37,8 @@ module.exports = function generateProviderDocsV2(pluginName) {
|
|
|
37
37
|
}),
|
|
38
38
|
};
|
|
39
39
|
fs.writeFileSync(
|
|
40
|
-
path.join(process.cwd(), "dist", "
|
|
40
|
+
path.join(process.cwd(), "dist", "contracts.json"),
|
|
41
41
|
JSON.stringify(contract, null, 2)
|
|
42
42
|
);
|
|
43
|
-
console.log(`Providers
|
|
43
|
+
console.log(`Providers contracts for ${pluginName} generated.`);
|
|
44
44
|
};
|