jotaijs / jotai-urql

Jotai integration library for URQL
MIT License
29 stars 5 forks source link

Fix the typescript declaration in the built files. #12

Closed sandhose closed 1 year ago

sandhose commented 1 year ago

See https://github.com/jotaijs/jotai-urql/pull/11#issuecomment-1513180634

This adds a separate tsconfig for microbundle to use for generating the .d.ts declaration files.

This is the output dist/ folder when running npm compile:

dist/atomWithMutation.d.ts
dist/atomWithQuery.d.ts
dist/atomWithSubscription.d.ts
dist/clientAtom.d.ts
dist/common.d.ts
dist/index.d.ts
dist/index.modern.js
dist/index.modern.js.map
dist/index.modern.mjs
dist/index.modern.mjs.map
dist/index.umd.js
dist/index.umd.js.map
dist/suspenseAtom.d.ts
dist/types.d.ts
codesandbox-ci[bot] commented 1 year ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 80c191f32d70f1c2bb1fe4db76a130dd01285523:

Sandbox Source
React Configuration
React Typescript Configuration
dai-shi commented 1 year ago

https://www.npmjs.com/package/jotai-urql/v/0.7.1