diff --git a/packages/mui-material-nextjs/package.json b/packages/mui-material-nextjs/package.json index d15196c61cef73..1e67ea6ef8755d 100644 --- a/packages/mui-material-nextjs/package.json +++ b/packages/mui-material-nextjs/package.json @@ -32,8 +32,8 @@ "build:copy-files": "node ../../scripts/copyFiles.mjs", "build:types": "node ../../scripts/buildTypes.mjs", "prebuild": "rimraf build tsconfig.build.tsbuildinfo", - "release": "pnpm build && npm publish build", - "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-utils/**/*.test.{js,ts,tsx}'", + "release": "pnpm build && pnpm publish", + "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-material-nextjs/**/*.test.{js,ts,tsx}'", "typescript": "tsc -p tsconfig.json" }, "devDependencies": { @@ -65,7 +65,8 @@ }, "sideEffects": false, "publishConfig": { - "access": "public" + "access": "public", + "directory": "build" }, "engines": { "node": ">=12.0.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b500ac77001f68..3592375b5f6758 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1666,6 +1666,7 @@ importers: react: specifier: ^18.2.0 version: 18.2.0 + publishDirectory: build packages/mui-private-theming: dependencies: