-
-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(typescript): add resolve options (#1015)
* Add resolve options to typescript plugin.ts * Add documentation for resolve options to typescript plugin.ts * Change to filterRoot for resolve options to typescript plugin.ts * Change to use parsed options rootDir Update readme.md * Added tests * Prettier fix * Lint fix Co-authored-by: Josh <chiefidiot@users.noreply.github.com>
- Loading branch information
1 parent
00e16d9
commit 8ff10f6
Showing
14 changed files
with
477 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"0 debug pnpm:scope": { | ||
"selected": 1, | ||
"workspacePrefix": "/Users/jani/projects/plugins" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"0 debug pnpm:scope": { | ||
"selected": 1, | ||
"workspacePrefix": "/Users/jani/projects/plugins" | ||
}, | ||
"1 error pnpm": { | ||
"code": "ELIFECYCLE", | ||
"errno": "ENOENT", | ||
"syscall": "spawn", | ||
"file": "sh", | ||
"pkgid": "@rollup/plugin-typescript@8.2.5", | ||
"stage": "prebuild", | ||
"script": "del-cli dist", | ||
"pkgname": "@rollup/plugin-typescript", | ||
"err": { | ||
"name": "pnpm", | ||
"message": "@rollup/plugin-typescript@8.2.5 prebuild: `del-cli dist`\nspawn ENOENT", | ||
"code": "ELIFECYCLE", | ||
"stack": "pnpm: @rollup/plugin-typescript@8.2.5 prebuild: `del-cli dist`\nspawn ENOENT\n at ChildProcess.<anonymous> (/Users/jani/.config/yarn/global/node_modules/pnpm/dist/pnpm.cjs:93136:22)\n at ChildProcess.emit (node:events:394:28)\n at maybeClose (node:internal/child_process:1064:16)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)" | ||
} | ||
}, | ||
"2 warn pnpm:global": " Local package.json exists, but node_modules missing, did you mean to install?" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const foo = 'bar' as string; |
5 changes: 5 additions & 0 deletions
5
packages/typescript/test/fixtures/root-dir/packages/test-1/main.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { foo } from '../include'; | ||
|
||
const answer = 42; | ||
// eslint-disable-next-line no-console | ||
console.log(`the answer is ${answer}, ${foo}`); |
5 changes: 5 additions & 0 deletions
5
packages/typescript/test/fixtures/root-dir/packages/test-1/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/typescript/test/fixtures/root-dir/packages/test-2/main.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { foo } from '../include'; | ||
|
||
const answer = 42; | ||
// eslint-disable-next-line no-console | ||
console.log(`the answer is ${answer}, ${foo}`); |
2 changes: 2 additions & 0 deletions
2
packages/typescript/test/fixtures/root-dir/packages/test-2/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"compilerOptions": { | ||
"rootDir": "./" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.