Conversation
| "init": "scripts/init.mjs", | ||
| "init-test-app": "scripts/init.mjs", | ||
| "configure-test-app": "scripts/configure.mjs", |
There was a problem hiding this comment.
| "init": "scripts/init.mjs", | |
| "init-test-app": "scripts/init.mjs", | |
| "configure-test-app": "scripts/configure.mjs", | |
| "configure-test-app": "scripts/configure.mjs", | |
| "init": "scripts/init.mjs", | |
| "init-test-app": "scripts/init.mjs", |
There was a problem hiding this comment.
The order matters because bunx will always choose the first one. See #2418.
96e794f to
9bdcce9
Compare
| "format": "nx run-many --target format:c,format:js,format:swift", | ||
| "lint": "nx run-many --target lint:js,lint:kt,lint:rb,lint:swift", | ||
| "format:js": "oxfmt $(git ls-files '.github/*.json' '.github/*.yml' '.yarn/plugins/*' '.yarnrc.yml' 'CONTRIBUTING.md' 'README.md' 'nx.json')", | ||
| "format:js": "oxfmt '**/README.md' '**/package.json' '*.{cjs,cts,js,mjs,mts,ts,tsx,yml}' '.github/**/*.json' 'CONTRIBUTING.md' 'nx.json' '!packages/app/package.json'", |
There was a problem hiding this comment.
I guess you don't want to invoke via a script or nx because the slowdown is significant?
There was a problem hiding this comment.
Would the leading ** be a perf problem? And is there not a config you can list the files in?
There was a problem hiding this comment.
I guess you don't want to invoke via a script or nx because the slowdown is significant?
This can be invoked via nx. See the format command.
Would the leading ** be a perf problem? And is there not a config you can list the files in?
The ** is required to match files in subdirectories. I haven't been able to find any configs to list files.
Description
Run
oxfmtfrom workspace rootPlatforms affected
Test plan
n/a