From 53d73c6aa9833e5a5bf60c2c78896456e77fab40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJamesHenry=E2=80=9D?= Date: Wed, 31 May 2023 15:21:06 +0400 Subject: [PATCH] fix: internal cli.js should not be bundled --- packages/lerna/project.json | 9 +++++++-- packages/lerna/src/{cli.ts => cli.js} | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) rename packages/lerna/src/{cli.ts => cli.js} (65%) diff --git a/packages/lerna/project.json b/packages/lerna/project.json index a6f9dcb1fe..514d7835ad 100644 --- a/packages/lerna/project.json +++ b/packages/lerna/project.json @@ -20,12 +20,17 @@ "outputPath": "packages/lerna/dist", "main": "packages/lerna/src/index.ts", "tsConfig": "packages/lerna/tsconfig.lib.json", - "assets": [], + "assets": [ + { + "input": "packages/lerna/src", + "glob": "cli.js", + "output": "." + } + ], "thirdParty": false, "platform": "node", "format": ["cjs"], "additionalEntryPoints": [ - "packages/lerna/src/cli.ts", "packages/lerna/src/commands/changed/command.ts", "packages/lerna/src/commands/changed/index.ts", "packages/lerna/src/commands/clean/command.ts", diff --git a/packages/lerna/src/cli.ts b/packages/lerna/src/cli.js similarity index 65% rename from packages/lerna/src/cli.ts rename to packages/lerna/src/cli.js index e3ce0d701c..04e0f4babb 100755 --- a/packages/lerna/src/cli.ts +++ b/packages/lerna/src/cli.js @@ -1,9 +1,9 @@ #!/usr/bin/env node -/* eslint-disable @typescript-eslint/no-var-requires */ + +/* eslint-disable */ "use strict"; -/* eslint-disable import/no-dynamic-require, global-require */ const importLocal = require("import-local"); if (importLocal(__filename)) {