CLI generation fixes to support ESM backed libraries
This commit is contained in:
Vendored
+1085
-645
File diff suppressed because it is too large
Load Diff
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Generated
+483
-420
File diff suppressed because it is too large
Load Diff
+5
-5
@@ -24,14 +24,14 @@
|
||||
"@actions/core": "^1.10.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@github/dependency-submission-toolkit": "^2.0.0",
|
||||
"commander": "^9.4.0",
|
||||
"commander": "^12.0.0",
|
||||
"packageurl-js": "^1.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chai": "^4.3.1",
|
||||
"@vercel/ncc": "^0.38.1",
|
||||
"chai": "^4.3.6",
|
||||
"pkg": "^5.8.0",
|
||||
"@yao-pkg/pkg": "^5.11.5",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vitest": "^1.2.1"
|
||||
@@ -41,9 +41,9 @@
|
||||
},
|
||||
"pkg": {
|
||||
"targets": [
|
||||
"node18-linux-x64",
|
||||
"node18-win-x64",
|
||||
"node18-macos-x64"
|
||||
"node20-linux-x64",
|
||||
"node20-win-x64",
|
||||
"node20-macos-x64"
|
||||
],
|
||||
"assets": [
|
||||
"package.json"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import pkg from '../../package.json';
|
||||
import { program } from 'commander';
|
||||
|
||||
const { program } = require('commander');
|
||||
program.name(pkg.name);
|
||||
program.version(pkg.version);
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "ES2020",
|
||||
"module": "commonjs",
|
||||
"outDir": "./lib",
|
||||
"sourceRoot": "./src",
|
||||
"strict": true,
|
||||
|
||||
Reference in New Issue
Block a user