Skip to content

Commit

Permalink
fix: Solved the problem of error in the browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
hacxy committed Oct 28, 2024
1 parent 0f6f5a0 commit dc74d81
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 22 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"eslint": "^8.56.0",
"globals": "^15.0.0",
"oh-my-live2d": "^0.16.1",
"quicktype-core": "^23.0.170",
"release-it": "^15.5.1",
"typedoc": "0.25.13",
"typedoc-plugin-markdown": "4.0.3",
Expand All @@ -51,6 +50,7 @@
"vue": "^3.3.4"
},
"dependencies": {
"@sinclair/typebox-codegen": "^0.10.5"
"@sinclair/typebox-codegen": "^0.10.5",
"quicktype-core": "23.0.146"
}
}
41 changes: 24 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions test/demo.web.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { helloWorld } from '../dist';
import { json2typescript } from '../dist/index';

console.log(helloWorld());
json2typescript(`[{"id": 1}]`).then((res) => {
console.log(res);
});
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig({
fileName: 'index'
},
rollupOptions: {
external: ['@sinclair/typebox-codegen']
external: ['@sinclair/typebox-codegen', 'quicktype-core']
}
},

Expand Down

0 comments on commit dc74d81

Please sign in to comment.