Skip to content

Commit

Permalink
fix: internal cli.js should not be bundled
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed May 31, 2023
1 parent 898923d commit 53d73c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions packages/lerna/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/lerna/src/cli.ts → packages/lerna/src/cli.js
Original file line number Diff line number Diff line change
@@ -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)) {
Expand Down

0 comments on commit 53d73c6

Please sign in to comment.