@tsmodule/tsmodule 39.0.1 → 39.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51,8 +51,8 @@ typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileUR
51
51
  `,B.blue(new Date().toLocaleString()))},$h=async()=>{let t=process.cwd(),e=Ee();process.platform!=="win32"&&await e.run("clear"),Fh(),await jt({dev:!0}),Hh("src/**/*"),(0,qh.default)(cy(t,"src"),{recursive:!0}).on("change",async(r,i)=>{if(!fy(i)||(await hy(i)).isDirectory())return;Fh();let a=Date.now();await jt({dev:!0,input:i});let l=Date.now()-a;_e(B.blueBright(`Dev refresh finished in ${B.bold(`${l}ms`)}.`)).succeed(),Hh(uy(t,i))})};import{pathToFileURL as py}from"url";import{resolve as dy}from"path";var jh=async()=>{let t=dy(_r,"dist/loader/index.js"),e=["--no-warnings","--loader",py(t).href,...process.argv.slice(2)];await Ee().run(`node ${e.join(" ")}`)};var{version:Ay}=await gh(),mt=new wa;mt.name(B.white(B.bold("tsmodule"))).usage(B.white(B.bold("<file | command> [options]"))).description(B.blueBright(`A tool for building TypeScript modules.
52
52
 
53
53
  Run TS directly: ${B.bold("tsmodule src/index.ts")}
54
- Use a command: ${B.bold("tsmodule build")}`)).version(String(Ay));mt.command("dev").description("Build and watch for changes.").action($h);mt.command("build").description("Builds TS files to output in dist/.").option("-i, --input <files>","Entrypoints to compile.","src/**/*").option("--styles <styles>","Specify stylesheet entrypoint.","src/components/index.css").option("-t, --target <target>","ECMAScript featureset to target.","esnext").option("-b, --bundle","Bundle dependencies into entrypoints.",!1).option("-d, --dev","Build development runtime.",!1).option("-r, --runtime-only","Do not emit type declarations, only build JS runtime.",!1).option("--stdin [source]","Read from a string or stdin.").option("--stdin-file [file]","File path to mock for stdin.").option("--no-write",`Return code from build() rather than write to disk.
55
- For programmatic use alongside { stdin: ... }.`,!1).action(async t=>{await jt(t)});mt.command("create <name>").option("--react","Create React component library with Next.js").description("Create a new project.").action(yh);mt.command("normalize [files]").description(`Rewrites import specifiers in files to ESM-compliant paths.
54
+ Use a command: ${B.bold("tsmodule build")}`)).version(String(Ay));mt.command("dev").description("Build and watch for changes.").action($h);mt.command("build").description("Builds TS files to output in dist/.").option("-i, --input <files>","Entrypoints to compile.").option("--styles <styles>","Specify stylesheet entrypoint.").option("-t, --target <target>","ECMAScript featureset to target.").option("-b, --bundle","Bundle dependencies into entrypoints.").option("-d, --dev","Build development runtime.").option("-r, --runtime-only","Do not emit type declarations, only build JS runtime.").option("--stdin [source]","Read from a string or stdin.").option("--stdin-file [file]","File path to mock for stdin.").option("--no-write",`Return code from build() rather than write to disk.
55
+ For programmatic use alongside { stdin: ... }.`).action(async t=>{await jt(t)});mt.command("create <name>").option("--react","Create React component library with Next.js").description("Create a new project.").action(yh);mt.command("normalize [files]").description(`Rewrites import specifiers in files to ESM-compliant paths.
56
56
  (default: dist/**/*.js)`).action(async({files:t})=>{await Ar(t)});mt.command("run",{isDefault:!0}).argument("<file>","The file to run.").option("--d, --dev","Enable development mode").description("Run the given TS program, analogous to `node <file>`.").action(jh);mt.parse(process.argv);export{ch as bannerLog,jt as build,yh as create,$h as dev,jh as execute,Ar as normalizeImportSpecifiers};
57
57
  /*!
58
58
  * fill-range <https://github.com/jonschlinkert/fill-range>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsmodule/tsmodule",
3
3
  "platform": "node",
4
4
  "type": "module",
5
- "version": "39.0.1",
5
+ "version": "39.0.2",
6
6
  "repository": "tsmodule/tsmodule",
7
7
  "description": "TypeScript Module loader and compiler",
8
8
  "license": "MIT",