Skip to content

Commit

Permalink
Merge pull request #58 from iway1/config-and-cache
Browse files Browse the repository at this point in the history
updates project config, disable caching by default
  • Loading branch information
iway1 authored Apr 4, 2023
2 parents 72710d7 + 353b4fa commit b19012a
Show file tree
Hide file tree
Showing 7 changed files with 14,390 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ node_modules
.vscode
.env
.DS_STORE
yarn.lock
yarn-error.log
package-lock.json
lib

# See http://help.github.com/ignore-files/ for more about ignoring files.
Expand Down
5 changes: 1 addition & 4 deletions packages/dev-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@
"preview": "vite preview"
},
"dependencies": {

"@trpc/client": "^10.5.0",

"@trpc/server": "^10.5.0",
"fs": "^0.0.1-security",

"rollup-plugin-node-builtins": "^2.1.2",
"superjson": "^1.12.0",
"zod": "^3.20.2"
"zod": "^3.19.1"
},
"devDependencies": {
"@types/react": "^18.0.26",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.0",
"ws": "^8.11.0",
"zod": "3.20.2",
"zod": "^3.19.1",
"zod-to-json-schema": "^3.20.1"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/trpc-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"typings": "lib/src/index.d.ts",
"scripts": {
"test": "jest",
"test:watch": "jest --watch",
"test:watch": "jest --watchAll",
"build": "npx rollup --bundleConfigAsCjs --config rollup.config.js",
"dev": "rollup --config rollup.config.js --watch"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/trpc-panel/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ let cache: {
};

export function renderTrpcPanel(router: Router<any>, options: RenderOptions) {
if (options.cache !== false && cache.val) return cache.val;
if (options.cache === true && cache.val) return cache.val;

const bundleInjectionParams: InjectionParam[] = [
{
searchFor: routerReplaceSymbol,
Expand Down
1 change: 1 addition & 0 deletions rm-modules.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rm -rf node_modules packages/trpc-panel/node_modules packages/test-app/node_modules packages/dev-app/node_modules
14,384 changes: 14,384 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit b19012a

Please sign in to comment.