dctc 1.1.0 → 1.1.1
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/README.md +10 -2
- package/package.json +2 -6
package/README.md
CHANGED
|
@@ -19,8 +19,9 @@ dctc [options] <file>
|
|
|
19
19
|
|
|
20
20
|
## Options
|
|
21
21
|
```
|
|
22
|
-
-h, --help
|
|
23
|
-
-v, --version
|
|
22
|
+
-h, --help display help for command
|
|
23
|
+
-v, --version output the version number
|
|
24
|
+
-c, --compiler <name> specify compiler: es, rollup, rolldown (default: es)
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
## Installation
|
|
@@ -114,6 +115,13 @@ work()
|
|
|
114
115
|
dctc generate-html.tsx
|
|
115
116
|
```
|
|
116
117
|
|
|
118
|
+
Or specify a compiler:
|
|
119
|
+
|
|
120
|
+
```shell
|
|
121
|
+
dctc --compiler rollup generate-html.tsx
|
|
122
|
+
dctc -c rolldown generate-html.tsx
|
|
123
|
+
```
|
|
124
|
+
|
|
117
125
|
#### The `page.html` file has been generated, and it looks like this
|
|
118
126
|
|
|
119
127
|
```html
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dctc",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Dynamically compile TSX/TS files and execute them.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -14,11 +14,7 @@
|
|
|
14
14
|
"LICENSE"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"test": "node test/
|
|
18
|
-
"test:basic": "node test/test-runner.js",
|
|
19
|
-
"test:verify": "node test/verify-output.js",
|
|
20
|
-
"test:output": "node test/save-output.js",
|
|
21
|
-
"test:example": "node test/test-example.js"
|
|
17
|
+
"test": "node bin/index.js test/test.ts"
|
|
22
18
|
},
|
|
23
19
|
"repository": {
|
|
24
20
|
"type": "git",
|