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

Convert scripts to ESM #1307

Merged
merged 6 commits into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@
"markdownlint": "markdownlint-cli2 \"**/*.md\"",
"prettier": "pretty-quick --ignore-path .eslintignore",
"prettier:all": "prettier --write . --ignore-path .eslintignore",
"deduplicate": "node scripts/deduplicate.js",
"deduplicate": "node scripts/deduplicate.mjs",
"start": "dotenv cross-env FORCE_COLOR=1 yarn workspace @mui/toolpad-app start",
"dev": "dotenv cross-env FORCE_COLOR=1 lerna -- run dev --stream --parallel --scope @mui/toolpad-core --scope @mui/toolpad-components --scope @mui/toolpad-app",
"docs:dev": "yarn workspace docs dev",
"docs:build": "yarn workspace docs build",
"docs:export": "yarn workspace docs export",
"eslint": "eslint . --report-unused-disable-directives --ext .js,.ts,.tsx",
"jsonlint": "node ./scripts/jsonlint.js",
"jsonlint": "node ./scripts/jsonlint.mjs",
"prisma": "dotenv yarn workspace @mui/toolpad-app run --cwd=\"./packages/toolpad-app\" prisma",
"release:build": "lerna run --ignore docs --stream build",
"release:version": "lerna version --no-changelog --no-push --no-git-tag-version",
"release:docker": "dotenv -- node ./scripts/releaseDocker.mjs",
"release:changelog": "dotenv -- node ./scripts/releaseChangelog.js --repo mui-toolpad",
"release:changelog": "dotenv -- node ./scripts/releaseChangelog.mjs --repo mui-toolpad",
"test:build": "lerna run build --scope @mui/toolpad-core --scope @mui/toolpad-components --stream",
"test:integration": "playwright test --config ./test/integration/playwright.config.ts",
"test": "yarn test:build && jest"
Expand Down
1 change: 0 additions & 1 deletion scripts/deduplicate.js

This file was deleted.

1 change: 1 addition & 0 deletions scripts/deduplicate.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@mui/monorepo/scripts/deduplicate.mjs';
1 change: 0 additions & 1 deletion scripts/jsonlint.js

This file was deleted.

1 change: 1 addition & 0 deletions scripts/jsonlint.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@mui/monorepo/scripts/jsonlint.mjs';
1 change: 0 additions & 1 deletion scripts/releaseChangelog.js

This file was deleted.

1 change: 1 addition & 0 deletions scripts/releaseChangelog.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@mui/monorepo/scripts/releaseChangelog.mjs';
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,7 @@

"@mui/monorepo@https://github.com/mui/material-ui.git":
version "5.10.13"
resolved "https://github.com/mui/material-ui.git#8ed5004e36817ea9ef6f32b56cdcb006582edba9"
resolved "https://github.com/mui/material-ui.git#5c12573d85a28e6ab665409b45fb604a6ca7dded"

"@mui/private-theming@^5.10.9":
version "5.10.9"
Expand Down