Comparing version 4.16.5 to 4.17.0
@@ -56,4 +56,2 @@ "use strict"; | ||
async run() { | ||
if (process.platform === 'win32') | ||
throw new Error('pack does not function on windows'); | ||
const { flags } = await this.parse(PackTarballs); | ||
@@ -66,2 +64,3 @@ const buildConfig = await Tarballs.buildConfig(flags.root, { targets: flags?.targets?.split(','), xz: flags.xz }); | ||
parallel: flags.parallel, | ||
...(process.platform === 'win32' ? { platform: 'win32' } : {}), | ||
pruneLockfiles: flags['prune-lockfiles'], | ||
@@ -68,0 +67,0 @@ tarball: flags.tarball, |
@@ -60,4 +60,4 @@ "use strict"; | ||
to.endsWith('gz') | ||
? await exec(`tar czf ${to} ${path.basename(from)}`, { cwd }) | ||
: await exec(`tar cfJ ${to} ${path.basename(from)}`, { cwd }); | ||
? await exec(`tar czf ${to} ${path.basename(from)}${process.platform === 'win32' ? ' --force-local' : ''}`, { cwd }) | ||
: await exec(`tar cfJ ${to} ${path.basename(from)}${process.platform === 'win32' ? ' --force-local' : ''}`, { cwd }); | ||
}; | ||
@@ -64,0 +64,0 @@ const isYarnProject = (yarnRootPath) => { |
@@ -663,10 +663,28 @@ { | ||
}, | ||
"upload:deb": { | ||
"pack:deb": { | ||
"aliases": [], | ||
"args": {}, | ||
"description": "Upload deb package built with `pack deb`.", | ||
"description": "Add a pretarball script to your package.json if you need to run any scripts before the tarball is created.", | ||
"flags": { | ||
"dry-run": { | ||
"description": "Run the command without uploading to S3.", | ||
"name": "dry-run", | ||
"compression": { | ||
"char": "z", | ||
"description": "For more details see the `-Zcompress-type` section at https://man7.org/linux/man-pages/man1/dpkg-deb.1.html", | ||
"name": "compression", | ||
"summary": "Override the default compression used by dpkg-deb.", | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"options": [ | ||
"gzip", | ||
"none", | ||
"xz", | ||
"zstd" | ||
], | ||
"type": "option" | ||
}, | ||
"prune-lockfiles": { | ||
"description": "remove lockfiles in the tarball.", | ||
"exclusive": [ | ||
"tarball" | ||
], | ||
"name": "prune-lockfiles", | ||
"allowNo": false, | ||
@@ -684,2 +702,14 @@ "type": "boolean" | ||
"type": "option" | ||
}, | ||
"tarball": { | ||
"char": "t", | ||
"description": "Optionally specify a path to a tarball already generated by NPM.", | ||
"exclusive": [ | ||
"prune-lockfiles" | ||
], | ||
"name": "tarball", | ||
"required": false, | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"type": "option" | ||
} | ||
@@ -689,3 +719,3 @@ }, | ||
"hiddenAliases": [], | ||
"id": "upload:deb", | ||
"id": "pack:deb", | ||
"pluginAlias": "oclif", | ||
@@ -695,2 +725,3 @@ "pluginName": "oclif", | ||
"strict": true, | ||
"summary": "Pack CLI into debian package.", | ||
"enableJsonFlag": false, | ||
@@ -701,14 +732,25 @@ "isESM": false, | ||
"commands", | ||
"upload", | ||
"pack", | ||
"deb.js" | ||
] | ||
}, | ||
"upload:macos": { | ||
"pack:macos": { | ||
"aliases": [], | ||
"args": {}, | ||
"description": "Upload macos installers built with `pack macos`.", | ||
"description": "Add a pretarball script to your package.json if you need to run any scripts before the tarball is created.", | ||
"flags": { | ||
"dry-run": { | ||
"description": "Run the command without uploading to S3.", | ||
"name": "dry-run", | ||
"additional-cli": { | ||
"description": "An Oclif CLI other than the one listed in config.bin that should be made available to the user\nthe CLI should already exist in a directory named after the CLI that is the root of the tarball produced by \"oclif pack:tarballs\"", | ||
"hidden": true, | ||
"name": "additional-cli", | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"type": "option" | ||
}, | ||
"prune-lockfiles": { | ||
"description": "remove lockfiles in the tarball.", | ||
"exclusive": [ | ||
"tarball" | ||
], | ||
"name": "prune-lockfiles", | ||
"allowNo": false, | ||
@@ -727,5 +769,16 @@ "type": "boolean" | ||
}, | ||
"tarball": { | ||
"char": "t", | ||
"description": "Optionally specify a path to a tarball already generated by NPM.", | ||
"exclusive": [ | ||
"prune-lockfiles" | ||
], | ||
"name": "tarball", | ||
"required": false, | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"type": "option" | ||
}, | ||
"targets": { | ||
"char": "t", | ||
"description": "Comma-separated targets to upload (e.g.: darwin-x64,darwin-arm64).", | ||
"description": "Comma-separated targets to pack (e.g.: darwin-x64,darwin-arm64).", | ||
"name": "targets", | ||
@@ -739,3 +792,3 @@ "hasDynamicHelp": false, | ||
"hiddenAliases": [], | ||
"id": "upload:macos", | ||
"id": "pack:macos", | ||
"pluginAlias": "oclif", | ||
@@ -745,2 +798,3 @@ "pluginName": "oclif", | ||
"strict": true, | ||
"summary": "Pack CLI into macOS .pkg", | ||
"enableJsonFlag": false, | ||
@@ -751,17 +805,23 @@ "isESM": false, | ||
"commands", | ||
"upload", | ||
"pack", | ||
"macos.js" | ||
] | ||
}, | ||
"upload:tarballs": { | ||
"pack:tarballs": { | ||
"aliases": [], | ||
"args": {}, | ||
"description": "Upload an oclif CLI to S3.", | ||
"description": "This can be used to create oclif CLIs that use the system node or that come preloaded with a node binary.\n\nAdd a pretarball script to your package.json if you need to run any scripts before the tarball is created.", | ||
"flags": { | ||
"dry-run": { | ||
"description": "Run the command without uploading to S3.", | ||
"name": "dry-run", | ||
"parallel": { | ||
"description": "Build tarballs in parallel.", | ||
"name": "parallel", | ||
"allowNo": false, | ||
"type": "boolean" | ||
}, | ||
"prune-lockfiles": { | ||
"description": "remove lockfiles in the tarball.", | ||
"name": "prune-lockfiles", | ||
"allowNo": false, | ||
"type": "boolean" | ||
}, | ||
"root": { | ||
@@ -777,5 +837,14 @@ "char": "r", | ||
}, | ||
"tarball": { | ||
"char": "l", | ||
"description": "Optionally specify a path to a tarball already generated by NPM.", | ||
"name": "tarball", | ||
"required": false, | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"type": "option" | ||
}, | ||
"targets": { | ||
"char": "t", | ||
"description": "Comma-separated targets to upload (e.g.: linux-arm,win32-x64).", | ||
"description": "Comma-separated targets to pack (e.g.: linux-arm,win32-x64).", | ||
"name": "targets", | ||
@@ -787,3 +856,3 @@ "hasDynamicHelp": false, | ||
"xz": { | ||
"description": "Also upload xz.", | ||
"description": "Also build xz.", | ||
"name": "xz", | ||
@@ -796,3 +865,3 @@ "allowNo": true, | ||
"hiddenAliases": [], | ||
"id": "upload:tarballs", | ||
"id": "pack:tarballs", | ||
"pluginAlias": "oclif", | ||
@@ -802,2 +871,3 @@ "pluginName": "oclif", | ||
"strict": true, | ||
"summary": "Package oclif CLI into tarballs.", | ||
"enableJsonFlag": false, | ||
@@ -808,14 +878,39 @@ "isESM": false, | ||
"commands", | ||
"upload", | ||
"pack", | ||
"tarballs.js" | ||
] | ||
}, | ||
"upload:win": { | ||
"pack:win": { | ||
"aliases": [], | ||
"args": {}, | ||
"description": "Upload windows installers built with `pack win`.", | ||
"description": "You need to have 7zip, nsis (makensis), and grep installed on your machine in order to run this command.\n\nThis command will produce unsigned installers unless you supply WINDOWS_SIGNING_PASS (prefixed with the name of your executable, e.g. OCLIF_WINDOWS_SIGNING_PASS) in the environment and have set the windows.name and windows.keypath properties in your package.json's oclif property.\n\nAdd a pretarball script to your package.json if you need to run any scripts before the tarball is created.", | ||
"flags": { | ||
"dry-run": { | ||
"description": "Run the command without uploading to S3.", | ||
"name": "dry-run", | ||
"additional-cli": { | ||
"description": "An Oclif CLI other than the one listed in config.bin that should be made available to the user\nthe CLI should already exist in a directory named after the CLI that is the root of the tarball produced by \"oclif pack:tarballs\".", | ||
"hidden": true, | ||
"name": "additional-cli", | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"type": "option" | ||
}, | ||
"defender-exclusion": { | ||
"description": "There is no way to set a hidden checkbox with \"true\" as a default...the user can always allow full security", | ||
"name": "defender-exclusion", | ||
"summary": "Set to \"checked\" or \"unchecked\" to set the default value for the checkbox. Set to \"hidden\" to hide the option (will let defender do its thing).", | ||
"default": "checked", | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"options": [ | ||
"checked", | ||
"unchecked", | ||
"hidden" | ||
], | ||
"type": "option" | ||
}, | ||
"prune-lockfiles": { | ||
"description": "remove lockfiles in the tarball.", | ||
"exclusive": [ | ||
"tarball" | ||
], | ||
"name": "prune-lockfiles", | ||
"allowNo": false, | ||
@@ -834,2 +929,14 @@ "type": "boolean" | ||
}, | ||
"tarball": { | ||
"char": "t", | ||
"description": "Optionally specify a path to a tarball already generated by NPM.", | ||
"exclusive": [ | ||
"prune-lockfiles" | ||
], | ||
"name": "tarball", | ||
"required": false, | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"type": "option" | ||
}, | ||
"targets": { | ||
@@ -845,3 +952,3 @@ "description": "Comma-separated targets to pack (e.g.: win32-x64,win32-x86,win32-arm64).", | ||
"hiddenAliases": [], | ||
"id": "upload:win", | ||
"id": "pack:win", | ||
"pluginAlias": "oclif", | ||
@@ -851,2 +958,3 @@ "pluginName": "oclif", | ||
"strict": true, | ||
"summary": "Create windows installer from oclif CLI", | ||
"enableJsonFlag": false, | ||
@@ -857,32 +965,14 @@ "isESM": false, | ||
"commands", | ||
"upload", | ||
"pack", | ||
"win.js" | ||
] | ||
}, | ||
"pack:deb": { | ||
"upload:deb": { | ||
"aliases": [], | ||
"args": {}, | ||
"description": "Add a pretarball script to your package.json if you need to run any scripts before the tarball is created.", | ||
"description": "Upload deb package built with `pack deb`.", | ||
"flags": { | ||
"compression": { | ||
"char": "z", | ||
"description": "For more details see the `-Zcompress-type` section at https://man7.org/linux/man-pages/man1/dpkg-deb.1.html", | ||
"name": "compression", | ||
"summary": "Override the default compression used by dpkg-deb.", | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"options": [ | ||
"gzip", | ||
"none", | ||
"xz", | ||
"zstd" | ||
], | ||
"type": "option" | ||
}, | ||
"prune-lockfiles": { | ||
"description": "remove lockfiles in the tarball.", | ||
"exclusive": [ | ||
"tarball" | ||
], | ||
"name": "prune-lockfiles", | ||
"dry-run": { | ||
"description": "Run the command without uploading to S3.", | ||
"name": "dry-run", | ||
"allowNo": false, | ||
@@ -900,14 +990,2 @@ "type": "boolean" | ||
"type": "option" | ||
}, | ||
"tarball": { | ||
"char": "t", | ||
"description": "Optionally specify a path to a tarball already generated by NPM.", | ||
"exclusive": [ | ||
"prune-lockfiles" | ||
], | ||
"name": "tarball", | ||
"required": false, | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"type": "option" | ||
} | ||
@@ -917,3 +995,3 @@ }, | ||
"hiddenAliases": [], | ||
"id": "pack:deb", | ||
"id": "upload:deb", | ||
"pluginAlias": "oclif", | ||
@@ -923,3 +1001,2 @@ "pluginName": "oclif", | ||
"strict": true, | ||
"summary": "Pack CLI into debian package.", | ||
"enableJsonFlag": false, | ||
@@ -930,25 +1007,14 @@ "isESM": false, | ||
"commands", | ||
"pack", | ||
"upload", | ||
"deb.js" | ||
] | ||
}, | ||
"pack:macos": { | ||
"upload:macos": { | ||
"aliases": [], | ||
"args": {}, | ||
"description": "Add a pretarball script to your package.json if you need to run any scripts before the tarball is created.", | ||
"description": "Upload macos installers built with `pack macos`.", | ||
"flags": { | ||
"additional-cli": { | ||
"description": "An Oclif CLI other than the one listed in config.bin that should be made available to the user\nthe CLI should already exist in a directory named after the CLI that is the root of the tarball produced by \"oclif pack:tarballs\"", | ||
"hidden": true, | ||
"name": "additional-cli", | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"type": "option" | ||
}, | ||
"prune-lockfiles": { | ||
"description": "remove lockfiles in the tarball.", | ||
"exclusive": [ | ||
"tarball" | ||
], | ||
"name": "prune-lockfiles", | ||
"dry-run": { | ||
"description": "Run the command without uploading to S3.", | ||
"name": "dry-run", | ||
"allowNo": false, | ||
@@ -967,16 +1033,5 @@ "type": "boolean" | ||
}, | ||
"tarball": { | ||
"targets": { | ||
"char": "t", | ||
"description": "Optionally specify a path to a tarball already generated by NPM.", | ||
"exclusive": [ | ||
"prune-lockfiles" | ||
], | ||
"name": "tarball", | ||
"required": false, | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"type": "option" | ||
}, | ||
"targets": { | ||
"description": "Comma-separated targets to pack (e.g.: darwin-x64,darwin-arm64).", | ||
"description": "Comma-separated targets to upload (e.g.: darwin-x64,darwin-arm64).", | ||
"name": "targets", | ||
@@ -990,3 +1045,3 @@ "hasDynamicHelp": false, | ||
"hiddenAliases": [], | ||
"id": "pack:macos", | ||
"id": "upload:macos", | ||
"pluginAlias": "oclif", | ||
@@ -996,3 +1051,2 @@ "pluginName": "oclif", | ||
"strict": true, | ||
"summary": "Pack CLI into macOS .pkg", | ||
"enableJsonFlag": false, | ||
@@ -1003,23 +1057,17 @@ "isESM": false, | ||
"commands", | ||
"pack", | ||
"upload", | ||
"macos.js" | ||
] | ||
}, | ||
"pack:tarballs": { | ||
"upload:tarballs": { | ||
"aliases": [], | ||
"args": {}, | ||
"description": "This can be used to create oclif CLIs that use the system node or that come preloaded with a node binary.\n\nAdd a pretarball script to your package.json if you need to run any scripts before the tarball is created.", | ||
"description": "Upload an oclif CLI to S3.", | ||
"flags": { | ||
"parallel": { | ||
"description": "Build tarballs in parallel.", | ||
"name": "parallel", | ||
"dry-run": { | ||
"description": "Run the command without uploading to S3.", | ||
"name": "dry-run", | ||
"allowNo": false, | ||
"type": "boolean" | ||
}, | ||
"prune-lockfiles": { | ||
"description": "remove lockfiles in the tarball.", | ||
"name": "prune-lockfiles", | ||
"allowNo": false, | ||
"type": "boolean" | ||
}, | ||
"root": { | ||
@@ -1035,14 +1083,5 @@ "char": "r", | ||
}, | ||
"tarball": { | ||
"char": "l", | ||
"description": "Optionally specify a path to a tarball already generated by NPM.", | ||
"name": "tarball", | ||
"required": false, | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"type": "option" | ||
}, | ||
"targets": { | ||
"char": "t", | ||
"description": "Comma-separated targets to pack (e.g.: linux-arm,win32-x64).", | ||
"description": "Comma-separated targets to upload (e.g.: linux-arm,win32-x64).", | ||
"name": "targets", | ||
@@ -1054,3 +1093,3 @@ "hasDynamicHelp": false, | ||
"xz": { | ||
"description": "Also build xz.", | ||
"description": "Also upload xz.", | ||
"name": "xz", | ||
@@ -1063,3 +1102,3 @@ "allowNo": true, | ||
"hiddenAliases": [], | ||
"id": "pack:tarballs", | ||
"id": "upload:tarballs", | ||
"pluginAlias": "oclif", | ||
@@ -1069,3 +1108,2 @@ "pluginName": "oclif", | ||
"strict": true, | ||
"summary": "Package oclif CLI into tarballs.", | ||
"enableJsonFlag": false, | ||
@@ -1076,39 +1114,14 @@ "isESM": false, | ||
"commands", | ||
"pack", | ||
"upload", | ||
"tarballs.js" | ||
] | ||
}, | ||
"pack:win": { | ||
"upload:win": { | ||
"aliases": [], | ||
"args": {}, | ||
"description": "You need to have 7zip, nsis (makensis), and grep installed on your machine in order to run this command.\n\nThis command will produce unsigned installers unless you supply WINDOWS_SIGNING_PASS (prefixed with the name of your executable, e.g. OCLIF_WINDOWS_SIGNING_PASS) in the environment and have set the windows.name and windows.keypath properties in your package.json's oclif property.\n\nAdd a pretarball script to your package.json if you need to run any scripts before the tarball is created.", | ||
"description": "Upload windows installers built with `pack win`.", | ||
"flags": { | ||
"additional-cli": { | ||
"description": "An Oclif CLI other than the one listed in config.bin that should be made available to the user\nthe CLI should already exist in a directory named after the CLI that is the root of the tarball produced by \"oclif pack:tarballs\".", | ||
"hidden": true, | ||
"name": "additional-cli", | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"type": "option" | ||
}, | ||
"defender-exclusion": { | ||
"description": "There is no way to set a hidden checkbox with \"true\" as a default...the user can always allow full security", | ||
"name": "defender-exclusion", | ||
"summary": "Set to \"checked\" or \"unchecked\" to set the default value for the checkbox. Set to \"hidden\" to hide the option (will let defender do its thing).", | ||
"default": "checked", | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"options": [ | ||
"checked", | ||
"unchecked", | ||
"hidden" | ||
], | ||
"type": "option" | ||
}, | ||
"prune-lockfiles": { | ||
"description": "remove lockfiles in the tarball.", | ||
"exclusive": [ | ||
"tarball" | ||
], | ||
"name": "prune-lockfiles", | ||
"dry-run": { | ||
"description": "Run the command without uploading to S3.", | ||
"name": "dry-run", | ||
"allowNo": false, | ||
@@ -1127,14 +1140,2 @@ "type": "boolean" | ||
}, | ||
"tarball": { | ||
"char": "t", | ||
"description": "Optionally specify a path to a tarball already generated by NPM.", | ||
"exclusive": [ | ||
"prune-lockfiles" | ||
], | ||
"name": "tarball", | ||
"required": false, | ||
"hasDynamicHelp": false, | ||
"multiple": false, | ||
"type": "option" | ||
}, | ||
"targets": { | ||
@@ -1150,3 +1151,3 @@ "description": "Comma-separated targets to pack (e.g.: win32-x64,win32-x86,win32-arm64).", | ||
"hiddenAliases": [], | ||
"id": "pack:win", | ||
"id": "upload:win", | ||
"pluginAlias": "oclif", | ||
@@ -1156,3 +1157,2 @@ "pluginName": "oclif", | ||
"strict": true, | ||
"summary": "Create windows installer from oclif CLI", | ||
"enableJsonFlag": false, | ||
@@ -1163,3 +1163,3 @@ "isESM": false, | ||
"commands", | ||
"pack", | ||
"upload", | ||
"win.js" | ||
@@ -1169,3 +1169,3 @@ ] | ||
}, | ||
"version": "4.16.5" | ||
"version": "4.17.0" | ||
} |
{ | ||
"name": "oclif", | ||
"description": "oclif: create your own CLI", | ||
"version": "4.16.5", | ||
"version": "4.17.0", | ||
"author": "Salesforce", | ||
@@ -6,0 +6,0 @@ "bin": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
276863
5856