diff --git a/package-lock.json b/package-lock.json index 194b7803f..589466192 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16962,7 +16962,7 @@ }, "src/sdks/core": { "name": "@firebolt-js/sdk", - "version": "1.4.0-next.2", + "version": "1.4.0-next.3", "license": "Apache-2.0", "devDependencies": { "jest": "^28.1.0", @@ -16973,7 +16973,7 @@ }, "src/sdks/discovery": { "name": "@firebolt-js/discovery-sdk", - "version": "1.4.0-next.2", + "version": "1.4.0-next.3", "license": "Apache-2.0", "devDependencies": { "jest": "^28.1.0", @@ -16984,7 +16984,7 @@ }, "src/sdks/manage": { "name": "@firebolt-js/manage-sdk", - "version": "1.4.0-next.2", + "version": "1.4.0-next.3", "license": "Apache-2.0", "devDependencies": { "jest": "^28.1.0", diff --git a/src/js/github.io/index.mjs b/src/js/github.io/index.mjs index 7681a9d7f..904c97150 100644 --- a/src/js/github.io/index.mjs +++ b/src/js/github.io/index.mjs @@ -95,6 +95,8 @@ packageJson.workspaces.forEach(async workspace => { const specification = await readJson(path.join('dist', 'firebolt-specification.json')) const openrpc = await readJson(path.join('dist', 'firebolt-open-rpc.json')) const corerpc = await readJson(path.join('dist', 'firebolt-core-open-rpc.json')) +const managerpc = await readJson(path.join('dist', 'firebolt-manage-open-rpc.json')) +const discoveryrpc = await readJson(path.join('dist', 'firebolt-discovery-open-rpc.json')) const capabilities = () => { const getOrCreateCapMethodList = (capabilities, c) => capabilities[c] = capabilities[c] || { uses: [], manages: [], provides: [] } @@ -170,6 +172,24 @@ if (version === 'latest') { writeJson(path.join(parsedArgs.output, 'requirements', packageJson.version, 'specifications', 'firebolt-open-rpc.json'), openrpc) } +// this is the firebolt Core OpenRPC spec JSON +writeJson(path.join(parsedArgs.output, 'requirements', version, 'specifications', 'firebolt-core-open-rpc.json'), corerpc) +if (version === 'latest') { + writeJson(path.join(parsedArgs.output, 'requirements', packageJson.version, 'specifications', 'firebolt-core-open-rpc.json'), corerpc) +} + +// this is the firebolt Manage OpenRPC spec JSON +writeJson(path.join(parsedArgs.output, 'requirements', version, 'specifications', 'firebolt-manage-open-rpc.json'), managerpc) +if (version === 'latest') { + writeJson(path.join(parsedArgs.output, 'requirements', packageJson.version, 'specifications', 'firebolt-manage-open-rpc.json'), managerpc) +} + +// this is the firebolt Discovery OpenRPC spec JSON +writeJson(path.join(parsedArgs.output, 'requirements', version, 'specifications', 'firebolt-discovery-open-rpc.json'), discoveryrpc) +if (version === 'latest') { + writeJson(path.join(parsedArgs.output, 'requirements', packageJson.version, 'specifications', 'firebolt-discovery-open-rpc.json'), discoveryrpc) +} + function channel(version) { const parts = version.split("-")