Skip to content

Commit

Permalink
remove generation of plugin.schema.json from all projects
Browse files Browse the repository at this point in the history
Fixes decentralized-identity#1254

Signed-off-by: Mirko Mollik <mirko.mollik@fit.fraunhofer.de>
  • Loading branch information
cre8 committed Jan 19, 2024
1 parent 6aa12b0 commit 81aa0fc
Show file tree
Hide file tree
Showing 17 changed files with 7 additions and 27 deletions.
7 changes: 3 additions & 4 deletions packages/cli/src/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ dev
'package.json file containing a Veramo plugin interface config',
'./package.json',
)
.option('-o, --output <string>', 'Output file of the schema', './src/plugin.schema.json')
.option('-o, --output <string>', 'Output file of the schema', './src/plugin.schema.ts')

.action(async (options) => {
const apiExtractorJsonPath: string = resolve(options.extractorConfig)
Expand Down Expand Up @@ -185,9 +185,8 @@ dev

interfaces[pluginInterfaceName] = api
}

writeFileSync(resolve(outPutPath.replace(/\.json$/, '.ts')), `export default ${JSON.stringify(interfaces)}`)
writeFileSync(resolve(outPutPath), JSON.stringify(interfaces, null, 2))

writeFileSync(resolve(outPutPath), `export default ${JSON.stringify(interfaces)}`)
})

dev
Expand Down
4 changes: 1 addition & 3 deletions packages/core-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"types": "./build/index.d.ts",
"require": "./build/index.js",
"import": "./build/index.js"
},
"./build/plugin.schema.json": "./build/plugin.schema.json",
},
"./build/plugin.schema": "./build/plugin.schema.js"
},
"types": "build/index.d.ts",
Expand Down Expand Up @@ -46,7 +45,6 @@
"files": [
"build/**/*",
"src/**/*",
"plugin.schema.json",
"README.md",
"LICENSE"
],
Expand Down
1 change: 0 additions & 1 deletion packages/core-types/src/plugin.schema.json

This file was deleted.

6 changes: 2 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"version": "5.6.0",
"main": "build/index.js",
"exports": {
".": "./build/index.js",
"./build/plugin.schema.json": "./build/plugin.schema.json"
".": "./build/index.js"
},
"types": "build/index.d.ts",
"scripts": {
Expand All @@ -25,8 +24,7 @@
},
"files": [
"build/**/*",
"src/**/*",
"plugin.schema.json",
"src/**/*",
"README.md",
"LICENSE"
],
Expand Down
4 changes: 1 addition & 3 deletions packages/credential-eip712/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"version": "5.6.0",
"main": "build/index.js",
"exports": {
".": "./build/index.js",
"./build/plugin.schema.json": "./build/plugin.schema.json"
".": "./build/index.js"
},
"types": "build/index.d.ts",
"scripts": {
Expand All @@ -31,7 +30,6 @@
"files": [
"build/**/*",
"src/**/*",
"plugin.schema.json",
"README.md",
"LICENSE"
],
Expand Down
1 change: 0 additions & 1 deletion packages/credential-eip712/src/plugin.schema.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/credential-ld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"build/**/*",
"src/**/*",
"contexts/**/*.json",
"plugin.schema.json",
"README.md",
"LICENSE"
],
Expand Down
Loading

0 comments on commit 81aa0fc

Please sign in to comment.