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

[core] Fix l10n script execution with arguments #13297

Merged
merged 2 commits into from
May 29, 2024

Conversation

LukasTy
Copy link
Member

@LukasTy LukasTy commented May 29, 2024

Fix https://github.com/mui/mui-x/actions/runs/9287240393

Follow up on #13251 (comment)

Replace a few other easy instances of babel-node usages with node or tsx.

@LukasTy LukasTy added the core Infrastructure work going on behind the scenes label May 29, 2024
@LukasTy LukasTy requested review from michelengelen and a team May 29, 2024 14:16
@LukasTy LukasTy self-assigned this May 29, 2024
"typescript:transpile:dev": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js\" scripts/formattedTSDemos --watch",
"populate:demos": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js\" scripts/populatePickersDemos"
"typescript:transpile:dev": "cross-env BABEL_ENV=development node scripts/formattedTSDemos --watch",
"populate:demos": "tsx scripts/populatePickersDemos"
Copy link
Member Author

Choose a reason for hiding this comment

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

node didn't work here, even though the file is js, but it loads other js file with an export usage.

@mui-bot
Copy link

mui-bot commented May 29, 2024

Deploy preview: https://deploy-preview-13297--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 5d23145

@@ -15,8 +15,8 @@
"create-playground": "cpy --cwd=scripts playground.template.tsx ../../pages/playground --rename=index.tsx",
"typescript": "tsc -p tsconfig.json",
"typescript:transpile": "cross-env BABEL_ENV=development node scripts/formattedTSDemos",
"typescript:transpile:dev": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js\" scripts/formattedTSDemos --watch",
"populate:demos": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js\" scripts/populatePickersDemos"
"typescript:transpile:dev": "cross-env BABEL_ENV=development node scripts/formattedTSDemos --watch",
Copy link
Member

Choose a reason for hiding this comment

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

Do we need BABEL_ENV=development if not using babel anymore? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Left it here, because the file internally uses @babel/core 🤔

@LukasTy LukasTy enabled auto-merge (squash) May 29, 2024 14:33
@LukasTy LukasTy merged commit e796d10 into mui:master May 29, 2024
16 checks passed
@LukasTy LukasTy deleted the fix-l10n-execution branch May 29, 2024 14:47
DungTiger pushed a commit to DungTiger/mui-x that referenced this pull request Jul 23, 2024
thomasmoon pushed a commit to thomasmoon/mui-x that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants