diff --git a/commands/init/index.js b/commands/init/index.js index 68aa265c18b..87bba822433 100644 --- a/commands/init/index.js +++ b/commands/init/index.js @@ -128,6 +128,7 @@ class InitCommand extends Command { } Object.assign(config, { + $schema: "node_modules/lerna/schemas/lerna-schema.json", packages: this.project.packageConfigs, useNx: false, version, diff --git a/core/lerna/package.json b/core/lerna/package.json index 7797212f3f3..900bbb1fa9a 100644 --- a/core/lerna/package.json +++ b/core/lerna/package.json @@ -18,7 +18,8 @@ }, "files": [ "index.js", - "cli.js" + "cli.js", + "schemas/lerna-schema.json" ], "engines": { "node": "^14.15.0 || >=16.0.0" diff --git a/schemas/lerna-schema.json b/core/lerna/schemas/lerna-schema.json similarity index 100% rename from schemas/lerna-schema.json rename to core/lerna/schemas/lerna-schema.json diff --git a/lerna.json b/lerna.json index f02dfb2af47..9a1d7c24e57 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "$schema": "schemas/lerna-schema.json", + "$schema": "core/lerna/schemas/lerna-schema.json", "command": { "create": { "homepage": "https://github.com/lerna/lerna",