Skip to content
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

[ts-sdk][demos] Set up pnpm workspaces, update eslint config, update ts config #830

Merged
merged 34 commits into from
Oct 31, 2024

Conversation

BrtqKr
Copy link
Collaborator

@BrtqKr BrtqKr commented Oct 16, 2024

No description provided.

@BrtqKr BrtqKr changed the title [ts-sdk][demos] Set up pnpm workspaces, update eslint config, update ts [ts-sdk][demos] Set up pnpm workspaces, update eslint config, update ts config Oct 16, 2024
@BrtqKr BrtqKr marked this pull request as draft October 16, 2024 20:54
Copy link
Member

@wkozyra95 wkozyra95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, but not everything builds yet.

btw, web-wasm package was merged in the mean time so remember to rebase to master

ts/package.json Outdated
"watch": "lerna run --parallel --stream watch --private",
"lint": "pnpm -r run lint",
"lint:fix": "pnpm -r run lint -- --fix",
"build": "pnpm -r --no-sort --filter ./packages/* run build",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incorrect glob patter

- 'examples/vite-browser-render'
- 'create-live-compositor'
- 'create-live-compositor/templates/node-minimal'
- 'create-live-compositor/templates/node-express-zustand'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix newlines (few other files also have that)

@@ -1,5 +1,6 @@
import * as Api from '../api.js';
import { createCompositorComponent, SceneComponent } from '../component.js';
import type * as Api from '../api.js';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was type necessary here for building or is this just a preference?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

preference - I like to have it enforced because you're able to easily tell the types and other things apart form each other. Overall, I've placed this rule for every subdir in ts

@BrtqKr BrtqKr requested a review from wkozyra95 October 31, 2024 10:02
@BrtqKr BrtqKr marked this pull request as ready for review October 31, 2024 10:35
"@types/react-reconciler": "0.28.8"
},
"dependencies": {
"react-reconciler": "0.29.2"
},
"peerDependencies": {
"live-compositor": "^0.1.0"
"react": "^18.3.1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"react": "^18.3.1",
"react": "*",

we need to have a large range, if I remember correctly more than one react in app will not work

@BrtqKr BrtqKr merged commit 0a4aae8 into master Oct 31, 2024
6 checks passed
@BrtqKr BrtqKr deleted the @BrtqKr/replace-lerna-with-pnpm branch October 31, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants