Skip to content

Commit

Permalink
Convert scripts to ESM (#1307)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
  • Loading branch information
Janpot authored Nov 14, 2022
1 parent bd33a58 commit a9e5915
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
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

0 comments on commit a9e5915

Please sign in to comment.