@tsmodule/tsmodule 9.3.1 → 9.4.0
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.
- package/dist/commands/execute/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -3
@@ -1 +1 @@
|
|
1
|
-
import{URL as s}from"url";import{spawn as n}from"
|
1
|
+
import{URL as s}from"url";import{spawn as n}from"cross-spawn";const a=()=>{process.env.NODE_OPTIONS="--no-warnings";const e=import.meta.url,o=new s("../../../dist/loader/index.js",e),r=["--loader",o.href,...process.argv.slice(2)];n("node",r,{stdio:"inherit"}).on("exit",process.exit)};export{a as execute};
|
package/dist/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
var r="@tsmodule/tsmodule",m="module",a="9.
|
2
|
+
var r="@tsmodule/tsmodule",m="module",a="9.4.0",s="tsmodule/tsmodule",d="TypeScript Module loader and compiler",p="MIT",l={tsmodule:"dist/index.js"},c={".":"./dist/loader/index.js","./*":"./dist/*/index.js","./package.json":"./package.json"},u="dist/types/index.d.ts",f=[{name:"C. Lewis",email:"ctj.lewis@icloud.com",url:"https://ctjlewis.com"}],g=["dist/","template/"],v={node:">=14"},b={bootstrap:"node bootstrap.js",prebuild:"yarn bootstrap",build:"node --no-warnings --loader ./dist/loader/index.js src/index.ts build",lint:"eslint --fix src",prepare:"yarn build -f",prepublishOnly:"yarn build && yarn test",test:"ava --no-worker-threads"},S={"@types/cross-spawn":"^6.0.2","@types/node":"17.0.8","@types/react":"17.0.38","@typescript-eslint/eslint-plugin":"^5.9.1","@typescript-eslint/parser":"^5.9.1",ava:"^4.0.1","await-shell":"^4.0.2",chalk:"^5.0.0",commander:"^8.3.0","create-debug-logger":"^1.10.1","cross-spawn":"^7.0.3",esbuild:"^0.14.0",eslint:"^8.6.0","fast-glob":"^3.2.10",ora:"^6.0.1",react:"^17.0.2",typescript:"^4.5.5"},h=["esm","loader","typescript","loader hook","require hook","experimental-loader"],w={files:["test/**/*.test.ts"],extensions:{ts:"module"},nodeArguments:["--no-warnings","--loader=@tsmodule/tsmodule"]},t={name:r,type:m,version:a,repository:s,description:d,license:p,bin:l,exports:c,types:u,contributors:f,files:g,engines:v,scripts:b,dependencies:S,keywords:h,ava:w};import i from"chalk";import{Command as y}from"commander";import{build as B}from"./commands/build/index.js";import{create as T}from"./commands/create/index.js";import{execute as A}from"./commands/execute/index.js";import{normalizeImportSpecifiers as C}from"./commands/normalize/index.js";const{version:E}=t,e=new y;e.name(i.bold(i.blueBright("tsmodule"))).description(i.blueBright("A tool for building TypeScript modules.")).version(String(E)),e.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),e.command("build").option("-d, --dev","Build development version (default: production)").option("-f, --fast","Do not emit type declarations, only transform to JS.").description("Builds TS files to output in dist/.").action(B),e.command("create <name>").description("Create a new project.").action(T),e.command("normalize [files]").description(`Rewrites import specifiers in files to ESM-compliant paths.
|
3
3
|
(default: dist/**/*.js)`).action(async({files:n})=>{await C(n)}),e.parse(process.argv);
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tsmodule/tsmodule",
|
3
3
|
"type": "module",
|
4
|
-
"version": "9.
|
4
|
+
"version": "9.4.0",
|
5
5
|
"repository": "tsmodule/tsmodule",
|
6
6
|
"description": "TypeScript Module loader and compiler",
|
7
7
|
"license": "MIT",
|
@@ -38,20 +38,21 @@
|
|
38
38
|
"test": "ava --no-worker-threads"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
+
"@types/cross-spawn": "^6.0.2",
|
41
42
|
"@types/node": "17.0.8",
|
42
43
|
"@types/react": "17.0.38",
|
43
44
|
"@typescript-eslint/eslint-plugin": "^5.9.1",
|
44
45
|
"@typescript-eslint/parser": "^5.9.1",
|
45
46
|
"ava": "^4.0.1",
|
46
|
-
"await-shell": "^4.0.
|
47
|
+
"await-shell": "^4.0.2",
|
47
48
|
"chalk": "^5.0.0",
|
48
49
|
"commander": "^8.3.0",
|
49
50
|
"create-debug-logger": "^1.10.1",
|
51
|
+
"cross-spawn": "^7.0.3",
|
50
52
|
"esbuild": "^0.14.0",
|
51
53
|
"eslint": "^8.6.0",
|
52
54
|
"fast-glob": "^3.2.10",
|
53
55
|
"ora": "^6.0.1",
|
54
|
-
"path": "^0.12.7",
|
55
56
|
"react": "^17.0.2",
|
56
57
|
"typescript": "^4.5.5"
|
57
58
|
},
|