-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add explorer to yarn workspaces #1549
Conversation
1d5c63c
to
1bc889b
Compare
@@ -16,7 +16,7 @@ | |||
"esModuleInterop": true, | |||
"noImplicitAny": true, | |||
"baseUrl": ".", | |||
"typeRoots": ["node_modules/@types", "@types"] | |||
"typeRoots": ["node_modules/@types", "../node_modules/@types", "@types"] |
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.
ts-jest
doesn't support yarn workspaces. Need to configure install location of typescript
explorer/package.json
Outdated
"private": true, | ||
"version": "0.0.0", | ||
"description": "LINK Explorer", | ||
"author": "Chainlink Dev Team", | ||
"license": "MIT", | ||
"keywords": [], | ||
"scripts": { | ||
"dev": "yarn autosetup && concurrently \"cd client && yarn start\" \"ts-node-dev --respawn --transpileOnly ./src/index.ts\"", | ||
"dev": "yarn automigrate && concurrently \"cd client && yarn start\" \"ts-node-dev --respawn --transpileOnly ./src/index.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.
Challenging to support autosetup
within yarn workspace so I removed it. Open to thoughts on how we can achieve this is we still want it.
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.
Should be fine to just leave it in the base package.json
and out of any of the sub projects?
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.
@j16r I stumbled across npm pre & post hooks and used them instead.
1bc889b
to
4ede71c
Compare
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.
Nice cleanup 👍
[Finishes #166833262]