diff --git a/README.md b/README.md
index 6577682..47e4e02 100644
--- a/README.md
+++ b/README.md
@@ -4,13 +4,13 @@ This tool transforms your local TypeScript code that gives you to rewrite file e
## transform examples
```ts
export { foo } from "./foo"
-transform to
+// transform to
export { foo } from "./foo.(ts|tsx|d.ts)"
```
```ts
import { bar } from "./bar"
-transform to
+// transform to
import { bar } from "./bar.(ts|tsx|d.ts)"
```
@@ -18,13 +18,14 @@ import { bar } from "./bar.(ts|tsx|d.ts)"
- Can't resolve `paths` alias of TypeScript compiler options.
- Can't resolve `import()` syntax, commonly called `dynamic import`.
- Can't keep `newline` of original source code.
+- Can't keep `single quatation` or `duble quatation` and `semicolon` of original source code.
## command
### remote
- dry run
- - `deno run --unstable --allow-env --allow-read https://deno.land/x/module_specifier_resolver@v1.0.5/bin.ts -b=./src -c=./tsconfig.json -d`
+ - `deno run --unstable --allow-env --allow-read https://deno.land/x/module_specifier_resolver@v1.0.6/bin.ts -b=./src -c=./tsconfig.json -d`
- transform
- - `deno run --unstable --allow-env --allow-read --allow-write https://deno.land/x/module_specifier_resolver@v1.0.5/bin.ts -b=./src -c=./tsconfig.json -r`
+ - `deno run --unstable --allow-env --allow-read --allow-write https://deno.land/x/module_specifier_resolver@v1.0.6/bin.ts -b=./src -c=./tsconfig.json -r`
### local
- `deno task run-dry`
- `deno task run`
@@ -32,7 +33,7 @@ import { bar } from "./bar.(ts|tsx|d.ts)"
### arguments
| key | description | type | default |
|-----|-----|-----|-----|
-| -b | local of base directory | `string` | `./` |
+| -b | local of base directory | `string` | `.` |
| -c | local of base `tsconfig.json` | `string` | `./tsconfig.json` |
| -d | dry run | `boolean` | `false` |
| -r | enable repl interface | `boolean` | `false` |
@@ -40,15 +41,15 @@ import { bar } from "./bar.(ts|tsx|d.ts)"
## tips
After you ran `bin.ts`, you should run `npx tsc --noEmit` due to check correctness of transformation by this tool.
- `tsconfig.json` example
-```json
-{
- "compilerOptions": {
- "moduleResolution": "bundler",
- "allowImportingTsExtensions": true,
- "noEmit": true
+ ```json
+ {
+ "compilerOptions": {
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "noEmit": true
+ }
}
-}
-```
+ ```
## License
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
diff --git a/examples/repo/src/App.tsx b/examples/repo/src/App.tsx
index f6ee8e9..603d565 100644
--- a/examples/repo/src/App.tsx
+++ b/examples/repo/src/App.tsx
@@ -7,6 +7,8 @@ import { ComponentC } from './ComponentC';
import style from './style.css';
import './sideEffect';
+const str = '😎';
+
// a comment
createRoot(document.getElementById('root') as HTMLElement)
.render(
@@ -14,5 +16,6 @@ createRoot(document.getElementById('root') as HTMLElement)
{str}
, ); diff --git a/examples/repo/src/Main/App.tsx b/examples/repo/src/Main/App.tsx deleted file mode 100644 index bfdf157..0000000 --- a/examples/repo/src/Main/App.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react'; -import { createRoot } from 'react-dom/client'; -import { ComponentA } from '../ComponentA'; -import { ComponentB } from '../ComponentB'; -import { ComponentC } from '../ComponentC'; - -createRoot(document.getElementById('root') as HTMLElement) - .render( -