-
Notifications
You must be signed in to change notification settings - Fork 8
feat(extra test files): move test files into test dir. update build pattern #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great! 👍
"./utils": { | ||
"default": "./build/esm/exports/utils.js", | ||
"types": "./build/dts/exports/utils.d.ts" | ||
}, | ||
"./schema": { | ||
"default": "./build/esm/exports/schema.js", | ||
"types": "./build/dts/exports/schema.d.ts" | ||
}, | ||
"./identity": { | ||
"default": "./build/esm/exports/identity.js", | ||
"types": "./build/dts/exports/identity.d.ts" | ||
}, | ||
"./space-events": { | ||
"default": "./build/esm/exports/space-events.js", | ||
"types": "./build/dts/exports/space-events.d.ts" | ||
}, | ||
"./key": { | ||
"default": "./build/esm/exports/key.js", | ||
"types": "./build/dts/exports/key.d.ts" | ||
}, | ||
"./messages": { | ||
"default": "./build/esm/exports/messages.js", | ||
"types": "./build/dts/exports/messages.d.ts" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have to keep this, I just moved the reexports into src/exports/{pkg}
. That way, the compiled code has these sub-directories, and we can then import from those directly.
Example:
import { generateId } from '@graphprotocol/graph-framework/utils'
I think this aligns with what Yaniv was suggesting in our last WG call.
Description
This PR involves a few quality of life improvements after the tsconfig fixes in #55, #57.
test
directory in each package and moved all*.test.ts
files out ofsrc
and into thetest
directoriestsconfig.test.json
for these test files@effect/build-utils
pkg for running buildsResolves #56