-
Notifications
You must be signed in to change notification settings - Fork 326
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
Reorganize monorepo scripts #953
Conversation
workflow: benchmarks/sizeComparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.
|
@@ -11,7 +11,8 @@ | |||
"prettier": "prettier --write \"**/*.js\" \"**/*.ts\"", | |||
"prettier:report": "prettier --check \"**/*.js\"", | |||
"lint": "npm run lint:report -- --fix", | |||
"lint:report": "eslint", | |||
"lint:report": "eslint packages tools", |
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.
eslint wasn't linting
@@ -38,7 +39,7 @@ | |||
"prettier": "^3.5.0", | |||
"prettier-plugin-hermes-parser": "^0.26.0", | |||
"rimraf": "^5.0.10", | |||
"typescript": "^5.3.3" |
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.
typescript doesn't seem to be used by any monorepo tooling
ping @mellyeliu |
@@ -1,37 +1,3 @@ | |||
# @stylexjs/scripts | |||
# scripts |
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.
what's the distinction we're making here between scripts
and tools
here? tools
specifically as broader developer tooling unrelated to code logic?
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.
At the moment, everything left in scripts
is installed as a bin
in the dependent packages - so they're basically CLI tools used within some of the packages. The root tools are limited to managing monorepo-wide devx tasks like publishing to npm, precommit checks, etc. I'll add these notes to the READMEs
What changed / motivation ?
Minor reorganization of the repo's scripts and tools. Private package names aren't scoped to
@stylexjs
and the release tooling is moved up to the root package.