-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wip build to use esmodules instead
- Loading branch information
Showing
13 changed files
with
109 additions
and
30 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 |
---|---|---|
|
@@ -4,3 +4,6 @@ coverage | |
*.tgz | ||
LLMLOG.md | ||
.turbo | ||
.turbo/ | ||
**/*/.turbo | ||
tsconfig.tsbuildinfo |
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 |
---|---|---|
@@ -1,4 +1,32 @@ | ||
|
||
> @open-rpc/[email protected] build:package /Users/shanejonas/code/openrpc/tools/packages/inspector | ||
> @open-rpc/[email protected] build:package /Users/zcstarr/src/open-rpc/tools/packages/inspector | ||
> tsc --project tsconfig.json | ||
|
||
[96msrc/containers/Inspector.tsx[0m:[93m41[0m:[93m43[0m - [91merror[0m[90m TS2307: [0mCannot find module '@open-rpc/logs-react' or its corresponding type declarations. | ||
|
||
[7m41[0m import JSONRPCLogger, { JSONRPCLog } from "@open-rpc/logs-react"; | ||
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~[0m | ||
|
||
[96msrc/hooks/useTabs.ts[0m:[93m3[0m:[93m28[0m - [91merror[0m[90m TS2307: [0mCannot find module '@open-rpc/logs-react' or its corresponding type declarations. | ||
|
||
[7m3[0m import { JSONRPCLog } from "@open-rpc/logs-react"; | ||
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~[0m | ||
|
||
|
||
Found 2 errors in 2 files. | ||
|
||
Errors Files | ||
1 src/containers/Inspector.tsx[90m:41[0m | ||
1 src/hooks/useTabs.ts[90m:3[0m | ||
[37;40mnpm[0m [0m[31;40mERR![0m [0m[35mcode[0m ELIFECYCLE | ||
[0m[37;40mnpm[0m [0m[31;40mERR![0m [0m[35merrno[0m 2 | ||
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m @open-rpc/[email protected] build:package: `tsc --project tsconfig.json` | ||
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m Exit status 2 | ||
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m | ||
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m Failed at the @open-rpc/[email protected] build:package script. | ||
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m This is probably not a problem with npm. There is likely additional logging output above. | ||
[0m[37;40mnpm[0m [0m[30;43mWARN[0m[35m[0m Local package.json exists, but node_modules missing, did you mean to install? | ||
[0m | ||
[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m A complete log of this run can be found in: | ||
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m /Users/zcstarr/.npm/_logs/2024-12-05T04_11_45_527Z-debug.log | ||
[0m |
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "./package", | ||
"outDir": "./build", | ||
"rootDir": "./src" | ||
}, | ||
"include": ["src"] | ||
"include": ["src"], | ||
"references": [ | ||
{ "path": "../logs-react" } | ||
] | ||
} |
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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
|
||
> @open-rpc/[email protected] build:package /Users/shanejonas/code/openrpc/tools/packages/logs-react | ||
> tsc --project tsconfig.json && mv package/exports.d.ts package/index.d.ts && mv package/exports.js package/index.js && find src/components -mindepth 1 -maxdepth 1 -type d -exec sh -c 'for f in {}/*.css; do cp "$f" "package/components/$(basename {})"; done' {} \; | ||
> @open-rpc/[email protected] build:package /Users/zcstarr/src/open-rpc/tools/packages/logs-react | ||
> tsc --build tsconfig.json && cp -r src/**/*.css build/ | ||
|
||
cp: src/components/logsReact/*.css: No such file or directory | ||
cp: src/components/alert/*.css: No such file or directory | ||
cp: src/components/logChips/*.css: No such file or directory |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "./package", | ||
"rootDir": "./src" | ||
"outDir": "./build", | ||
"rootDir": "./src", | ||
"composite": true | ||
}, | ||
"include": ["src"] | ||
} |
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 |
---|---|---|
@@ -1,17 +1,23 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"lib": ["dom", "es2015", "es2016", "es2017"], | ||
"target": "ES2020", | ||
"module": "ESNext", | ||
"moduleResolution": "bundler", | ||
"esModuleInterop": true, | ||
"jsx": "react", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"forceConsistentCasingInFileNames": true | ||
"composite": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"@open-rpc/*": ["packages/*/src"] | ||
} | ||
}, | ||
"exclude": ["node_modules", "build", "dist", "package"] | ||
"references": [ | ||
{ "path": "packages/logs-react" }, | ||
{ "path": "packages/inspector" }, | ||
{ "path": "packages/docs-react" }, | ||
{ "path": "packages/playground" } | ||
] | ||
} |