@tsmodule/tsmodule 30.0.4 → 30.0.5

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 +4 -4
  2. package/package.json +9 -1
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- var r="@tsmodule/tsmodule",s="node",a="module",d="30.0.4",l="tsmodule/tsmodule",m="TypeScript Module loader and compiler",p="MIT",c="dist/types/index.d.ts",u={tsmodule:"dist/index.js"},f={".":"./dist/loader/index.js","./*":"./dist/*/index.js","./package.json":"./package.json"},b=["dist/","templates/"],g={node:">=14"},y={prebootload:"node bootstrap.js",bootload:"node --no-warnings --loader ./dist/loader/index.js src/index.ts build -r",prebuild:"yarn bootload && yarn link -f",build:"tsmodule build",dev:"tsmodule dev",pretest:"yarn build -b",test:"ava --no-worker-threads",retest:"SKIP_TEST_SETUP=1 yarn test",lint:"eslint --fix src",prepare:"yarn build -r",prepublishOnly:"yarn test",release:"release-it -VV"},h={"@types/glob":"^7.2.0","@types/node":"^17.0.21","@typescript-eslint/eslint-plugin":"^5.14.0","@typescript-eslint/parser":"^5.14.0",ava:"^4.1.0","await-shell":"^32.0.0",chalk:"^5.0.1",commander:"^9.0.0","create-debug-logger":"^3.0.0",esbuild:"^0.14.25",eslint:"^8.11.0","fast-glob":"^3.2.10","fs-extra":"^10.0.1",glob:"^7.2.0","node-watch":"^0.7.3",ora:"^6.1.0",path:"^0.12.7",typescript:"^4.6.2"},S={"@types/fs-extra":"^9.0.13","eslint-config-next":"^12.1.0","release-it":"^14.12.5"},v={timeout:"10 minutes",files:["test/**/*.test.ts"],extensions:{ts:"module"},nodeArguments:["--no-warnings","--loader=@tsmodule/tsmodule"]},w=["esm","es module","ts module","bundle","loader","typescript","loader hook","require hook","experimental-loader"],C=[{name:"C. Lewis",email:"ctj.lewis@icloud.com",url:"https://ctjlewis.com"}],n={name:r,platform:s,type:a,version:d,repository:l,description:m,license:p,types:c,bin:u,exports:f,files:b,engines:g,scripts:y,dependencies:h,devDependencies:S,ava:v,keywords:w,contributors:C};import t from"chalk";import{Command as R}from"commander";import{build as x}from"./commands/build/index.js";import{create as B}from"./commands/create/index.js";import{dev as E}from"./commands/dev/index.js";import{execute as T}from"./commands/execute/index.js";import{normalizeImportSpecifiers as A}from"./commands/normalize/index.js";const{version:j}=n,o=new R;o.name(t.white(t.bold("tsmodule"))).usage(t.white(t.bold("<file | command> [options]"))).description(t.blueBright(`A tool for building TypeScript modules.
2
+ var r="@tsmodule/tsmodule",s="node",a="module",d="30.0.5",l="tsmodule/tsmodule",m="TypeScript Module loader and compiler",p="MIT",c="dist/types/index.d.ts",u={tsmodule:"dist/index.js"},f={".":"./dist/loader/index.js","./*":"./dist/*/index.js","./package.json":"./package.json"},b=["dist/","templates/"],g={node:">=14"},y={prebootload:"node bootstrap.js",bootload:"node --no-warnings --loader ./dist/loader/index.js src/index.ts build -r",prebuild:"yarn bootload && yarn link -f",build:"tsmodule build",dev:"tsmodule dev",pretest:"yarn build -b",test:"ava --no-worker-threads",retest:"SKIP_TEST_SETUP=1 yarn test",lint:"eslint --fix src",prepare:"yarn build -r",prepublishOnly:"yarn test",release:"release-it -VV"},h={"@types/glob":"^7.2.0","@types/node":"^17.0.21","@typescript-eslint/eslint-plugin":"^5.14.0","@typescript-eslint/parser":"^5.14.0",ava:"^4.1.0","await-shell":"^32.0.0",chalk:"^5.0.1",commander:"^9.0.0","create-debug-logger":"^3.0.0",esbuild:"^0.14.25",eslint:"^8.11.0","fast-glob":"^3.2.10","fs-extra":"^10.0.1",glob:"^7.2.0","node-watch":"^0.7.3",ora:"^6.1.0",path:"^0.12.7",typescript:"^4.6.2"},S={"@types/fs-extra":"^9.0.13","eslint-config-next":"^12.1.0","release-it":"^14.12.5"},v={git:{commitMessage:"chore: release v${version}"},github:{release:!0}},w={timeout:"10 minutes",files:["test/**/*.test.ts"],extensions:{ts:"module"},nodeArguments:["--no-warnings","--loader=@tsmodule/tsmodule"]},C=["esm","es module","ts module","bundle","loader","typescript","loader hook","require hook","experimental-loader"],R=[{name:"C. Lewis",email:"ctj.lewis@icloud.com",url:"https://ctjlewis.com"}],n={name:r,platform:s,type:a,version:d,repository:l,description:m,license:p,types:c,bin:u,exports:f,files:b,engines:g,scripts:y,dependencies:h,devDependencies:S,"release-it":v,ava:w,keywords:C,contributors:R};import t from"chalk";import{Command as x}from"commander";import{build as B}from"./commands/build/index.js";import{create as E}from"./commands/create/index.js";import{dev as T}from"./commands/dev/index.js";import{execute as A}from"./commands/execute/index.js";import{normalizeImportSpecifiers as j}from"./commands/normalize/index.js";const{version:k}=n,o=new x;o.name(t.white(t.bold("tsmodule"))).usage(t.white(t.bold("<file | command> [options]"))).description(t.blueBright(`A tool for building TypeScript modules.
3
3
 
4
4
  Run TS directly: ${t.bold("tsmodule src/index.ts")}
5
- Use a command: ${t.bold("tsmodule build")}`)).version(String(j)),o.command("dev").description("Build and watch for changes.").action(E),o.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.
6
- For programmatic use alongside { stdin: ... }.`,!1).option("--no-standard-styles","Do not add standard styles to bundled CSS.",!1).action(async i=>{await x(i)}),o.command("create <name>").option("--react","Create React component library with Next.js").description("Create a new project.").action(B),o.command("normalize [files]").description(`Rewrites import specifiers in files to ESM-compliant paths.
7
- (default: dist/**/*.js)`).action(async({files:i})=>{await A(i)}),o.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(T),o.parse(process.argv);
5
+ Use a command: ${t.bold("tsmodule build")}`)).version(String(k)),o.command("dev").description("Build and watch for changes.").action(T),o.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.
6
+ For programmatic use alongside { stdin: ... }.`,!1).option("--no-standard-styles","Do not add standard styles to bundled CSS.",!1).action(async i=>{await B(i)}),o.command("create <name>").option("--react","Create React component library with Next.js").description("Create a new project.").action(E),o.command("normalize [files]").description(`Rewrites import specifiers in files to ESM-compliant paths.
7
+ (default: dist/**/*.js)`).action(async({files:i})=>{await j(i)}),o.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(A),o.parse(process.argv);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsmodule/tsmodule",
3
3
  "platform": "node",
4
4
  "type": "module",
5
- "version": "30.0.4",
5
+ "version": "30.0.5",
6
6
  "repository": "tsmodule/tsmodule",
7
7
  "description": "TypeScript Module loader and compiler",
8
8
  "license": "MIT",
@@ -61,6 +61,14 @@
61
61
  "eslint-config-next": "^12.1.0",
62
62
  "release-it": "^14.12.5"
63
63
  },
64
+ "release-it": {
65
+ "git": {
66
+ "commitMessage": "chore: release v${version}"
67
+ },
68
+ "github": {
69
+ "release": true
70
+ }
71
+ },
64
72
  "ava": {
65
73
  "timeout": "10 minutes",
66
74
  "files": [