Comparing version 2.5.23 to 2.5.24
@@ -31,3 +31,3 @@ #!/usr/bin/env node | ||
program.name(name).description(description).version(version || "0.0.0"); | ||
program.command("pack [entryPaths...]").option("-f, --format [formats...]", "The output format for the generated JavaScript files `iife`, `cjs`, `esm`", ["cjs", "esm"]).option("-w, --watch", "Rebuild whenever a file changes", false).option("-s, --sourcemap", "Emit a source map", process.env.NODE_ENV === "production").option("-p, --platform <node,browser,neutral>", "Platform target", "browser").option("-o, --outdir <dir>", "The output directory for the build operation", "dist").option("--serve", "Serve mode starts a web server that serves your code to your browser on your device", false).option("--bundle", "Inline any imported dependencies into the file itself", false).option("-e, --external <packages...>", "External packages to exclude from the build", []).option("-re, --resolve-extensions [extensions...]", "The resolution algorithm used by node supports implicit file extensions", [".tsx", ".ts", ".jsx", ".js", ".css", ".json"]).option("-kn, --keep-names", "Keep JavaScript function/class names", false).option("--cjs-ext <ext>", "Specify CommonJS default file extension", ".js").option("--iife-ext <ext>", "Specify CommonJS default file extension", ".js").option("--esm-ext <ext>", "Specify CommonJS default file extension", ".mjs").option("--srcdir <dir>", "The source directory", "src").option("--target [targets...]", "This sets the target environment for the generated JavaScript and/or CSS code.").option("--mangle-props <regExp>", "Pass a regular expression to esbuild to tell esbuild to automatically rename all properties that match this regular expression").option("--entry-names <[dir]/[name]>", "Pass a regular expression to esbuild to tell esbuild to automatically rename all properties that match this regular expression").option("--declare", "Emit typescript declarations").option("--no-minify", "OFF: Minify the generated code").option("--no-clean", "OFF: Clean up the previous output directory before the build starts").option("--no-force-iife-bundle", "OFF: No external packages when the output format is iife").action(async function(args, options) { | ||
program.command("pack [entryPaths...]").option("-f, --format [formats...]", "The output format for the generated JavaScript files `iife`, `cjs`, `esm`", ["cjs", "esm"]).option("-w, --watch", "Rebuild whenever a file changes", false).option("-s, --sourcemap", "Emit a source map", process.env.NODE_ENV === "production").option("-p, --platform <node,browser,neutral>", "Platform target", "browser").option("-o, --outfile <name>", "The output file", "").option("-o, --outdir <dir>", "The output directory for the build operation", "dist").option("--serve", "Serve mode starts a web server that serves your code to your browser on your device", false).option("--bundle", "Inline any imported dependencies into the file itself", false).option("-e, --external <packages...>", "External packages to exclude from the build", []).option("-re, --resolve-extensions [extensions...]", "The resolution algorithm used by node supports implicit file extensions", [".tsx", ".ts", ".jsx", ".js", ".css", ".json"]).option("-kn, --keep-names", "Keep JavaScript function/class names", false).option("--cjs-ext <ext>", "Specify CommonJS default file extension", ".js").option("--iife-ext <ext>", "Specify CommonJS default file extension", ".js").option("--esm-ext <ext>", "Specify CommonJS default file extension", ".mjs").option("--srcdir <dir>", "The source directory", "src").option("--target [targets...]", "This sets the target environment for the generated JavaScript and/or CSS code.").option("--mangle-props <regExp>", "Pass a regular expression to esbuild to tell esbuild to automatically rename all properties that match this regular expression").option("--entry-names <[dir]/[name]>", "Pass a regular expression to esbuild to tell esbuild to automatically rename all properties that match this regular expression").option("--declare", "Emit typescript declarations").option("--no-minify", "OFF: Minify the generated code").option("--no-clean", "OFF: Clean up the previous output directory before the build starts").option("--no-external", "OFF: No external packages").action(async function(args, options) { | ||
try { | ||
@@ -34,0 +34,0 @@ const action = process.env.NODE_ENV === "test" ? require("../../../pack/src/actions/main") : require("@techor/pack/actions/main"); |
@@ -1,1 +0,1 @@ | ||
{"name":"techor","scripts":{"build":"esbuild src/bin/index.ts --outfile=dist/bin/index.js --format=cjs --target=esnext --platform=node","dev":"pnpm run build --watch","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"Author technology like a top leader","author":{"name":"Aron","email":"i@aron.tw","url":"https://aron.tw"},"homepage":"https://github.com/1aron/techor","bugs":{"url":"https://github.com/1aron/techor/issues"},"repository":{"type":"git","url":"https://github.com/1aron/techor.git","directory":"packages/techor"},"keywords":["author","technology","creator","config","opensource","plugin","package","framework","tool","software","pack","esbuild","version","bump","bundle","commonjs","esm","esmodule"],"bin":{"techor":"./dist/bin/index.js"},"files":["dist"],"sideEffects":false,"publishConfig":{"access":"public"},"dependencies":{"@techor/fs":"^2.5.23","@techor/log":"^2.5.23","commander":"^11.0.0"},"version":"2.5.23"} | ||
{"name":"techor","scripts":{"build":"esbuild src/bin/index.ts --outfile=dist/bin/index.js --format=cjs --target=esnext --platform=node","dev":"pnpm run build --watch","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"Author technology like a top leader","author":{"name":"Aron","email":"i@aron.tw","url":"https://aron.tw"},"homepage":"https://github.com/1aron/techor","bugs":{"url":"https://github.com/1aron/techor/issues"},"repository":{"type":"git","url":"https://github.com/1aron/techor.git","directory":"packages/techor"},"keywords":["author","technology","creator","config","opensource","plugin","package","framework","tool","software","pack","esbuild","version","bump","bundle","commonjs","esm","esmodule"],"bin":{"techor":"./dist/bin/index.js"},"files":["dist"],"sideEffects":false,"publishConfig":{"access":"public"},"dependencies":{"@techor/fs":"^2.5.24","@techor/log":"^2.5.24","commander":"^11.0.0"},"version":"2.5.24"} |
14467
Updated@techor/fs@^2.5.24
Updated@techor/log@^2.5.24