Skip to content

Commit

Permalink
chore: rename webpack-plugin to nextjs-monorepo-workaround-plugin (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
millsp committed Feb 25, 2023
1 parent 24ff6e0 commit 22f3464
Show file tree
Hide file tree
Showing 23 changed files with 79 additions and 79 deletions.
2 changes: 1 addition & 1 deletion packages/client/.gitignore
Expand Up @@ -13,6 +13,6 @@ junit.xml
.cache
prisma-0.0.0.tgz
prisma-client-0.0.0.tgz
prisma-webpack-plugin-0.0.0.tgz
prisma-nextjs-monorepo-workaround-plugin-0.0.0.tgz
LOGS.txt
LOGS.*.txt
2 changes: 1 addition & 1 deletion packages/client/tests/e2e/_utils/run.ts
Expand Up @@ -52,7 +52,7 @@ async function main() {
// we first get all the paths we are going to need to run e2e tests
const tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'prisma-build'))
const cliPkgPath = path.join(monorepoRoot, 'packages', 'cli')
const wpPluginPkgPath = path.join(monorepoRoot, 'packages', 'webpack-plugin')
const wpPluginPkgPath = path.join(monorepoRoot, 'packages', 'nextjs-monorepo-workaround-plugin')
const clientPkgPath = path.join(monorepoRoot, 'packages', 'client')
const cliPkgJsonPath = path.join(cliPkgPath, 'package.json')
const clientPkgJsonPath = path.join(clientPkgPath, 'package.json')
Expand Down
2 changes: 1 addition & 1 deletion packages/client/tests/e2e/_utils/standard.cmd.sh
Expand Up @@ -39,7 +39,7 @@ OUTPUT_REMOVAL_REGEX="$PNPM_EXDEV_WARN_REGEX|$PNPM_FALLBACK_COPY_REGEX"
cp jest.config.js /test/$NAME/jest.config.js;
cp prisma-0.0.0.tgz /test/prisma-0.0.0.tgz;
cp prisma-client-0.0.0.tgz /test/prisma-client-0.0.0.tgz;
cp prisma-webpack-plugin-0.0.0.tgz /test/prisma-webpack-plugin-0.0.0.tgz;
cp prisma-nextjs-monorepo-workaround-plugin-0.0.0.tgz /test/prisma-nextjs-monorepo-workaround-plugin-0.0.0.tgz;
# execute the test by running the _steps.ts file with esbuild-register
cd /test/$NAME;
node -r 'esbuild-register' _steps.ts;
Expand Down
@@ -1,4 +1,4 @@
const { PrismaPlugin } = require('@prisma/webpack-plugin')
const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin')

/** @type {import('next').NextConfig} */
module.exports = {
Expand Down
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@types/node": "18.11.18",
"@types/react": "18.0.26",
"@prisma/webpack-plugin": "../../../../prisma-webpack-plugin-0.0.0.tgz",
"@prisma/nextjs-monorepo-workaround-plugin": "../../../../prisma-nextjs-monorepo-workaround-plugin-0.0.0.tgz",
"webpack": "5.75.0"
},
"dependencies": {
Expand Down
@@ -1,4 +1,4 @@
const { PrismaPlugin } = require('@prisma/webpack-plugin')
const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin')

/** @type {import('next').NextConfig} */
module.exports = {
Expand Down
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@types/node": "18.11.18",
"@types/react": "18.0.26",
"@prisma/webpack-plugin": "../../../../prisma-webpack-plugin-0.0.0.tgz"
"@prisma/nextjs-monorepo-workaround-plugin": "../../../../prisma-nextjs-monorepo-workaround-plugin-0.0.0.tgz"
},
"dependencies": {
"db": "workspace:*",
Expand Down
@@ -1,4 +1,4 @@
const { PrismaPlugin } = require('@prisma/webpack-plugin')
const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin')

/** @type {import('next').NextConfig} */
module.exports = {
Expand Down
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@types/node": "18.11.18",
"@types/react": "18.0.26",
"@prisma/webpack-plugin": "../../../../prisma-webpack-plugin-0.0.0.tgz"
"@prisma/nextjs-monorepo-workaround-plugin": "../../../../prisma-nextjs-monorepo-workaround-plugin-0.0.0.tgz"
},
"dependencies": {
"db": "workspace:../db",
Expand Down
@@ -1,4 +1,4 @@
const { PrismaPlugin } = require('@prisma/webpack-plugin')
const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin')

/** @type {import('next').NextConfig} */
module.exports = {
Expand Down
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@types/node": "18.11.18",
"@types/react": "18.0.26",
"@prisma/webpack-plugin": "../../../../prisma-webpack-plugin-0.0.0.tgz"
"@prisma/nextjs-monorepo-workaround-plugin": "../../../../prisma-nextjs-monorepo-workaround-plugin-0.0.0.tgz"
},
"dependencies": {
"db": "workspace:../db",
Expand Down
@@ -1,4 +1,4 @@
const { PrismaPlugin } = require('@prisma/webpack-plugin')
const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin')

/** @type {import('next').NextConfig} */
module.exports = {
Expand Down
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@types/node": "18.11.18",
"@types/react": "18.0.26",
"@prisma/webpack-plugin": "../../../../prisma-webpack-plugin-0.0.0.tgz",
"@prisma/nextjs-monorepo-workaround-plugin": "../../../../prisma-nextjs-monorepo-workaround-plugin-0.0.0.tgz",
"webpack": "5.75.0"
},
"dependencies": {
Expand Down
@@ -1,4 +1,4 @@
const { PrismaPlugin } = require('@prisma/webpack-plugin')
const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin')

/** @type {import('next').NextConfig} */
module.exports = {
Expand Down
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@types/node": "18.11.18",
"@types/react": "18.0.26",
"@prisma/webpack-plugin": "../../../../prisma-webpack-plugin-0.0.0.tgz"
"@prisma/nextjs-monorepo-workaround-plugin": "../../../../prisma-nextjs-monorepo-workaround-plugin-0.0.0.tgz"
},
"dependencies": {
"db": "workspace:*",
Expand Down
@@ -1,4 +1,4 @@
const { PrismaPlugin } = require('@prisma/webpack-plugin')
const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin')

/** @type {import('next').NextConfig} */
module.exports = {
Expand Down
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@types/node": "18.11.18",
"@types/react": "18.0.26",
"@prisma/webpack-plugin": "../../../../prisma-webpack-plugin-0.0.0.tgz",
"@prisma/nextjs-monorepo-workaround-plugin": "../../../../prisma-nextjs-monorepo-workaround-plugin-0.0.0.tgz",
"webpack": "5.75.0"
},
"dependencies": {
Expand Down
@@ -1,4 +1,4 @@
const { PrismaPlugin } = require('@prisma/webpack-plugin')
const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin')

/** @type {import('next').NextConfig} */
module.exports = {
Expand Down
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@types/node": "18.11.18",
"@types/react": "18.0.26",
"@prisma/webpack-plugin": "../../../../prisma-webpack-plugin-0.0.0.tgz"
"@prisma/nextjs-monorepo-workaround-plugin": "../../../../prisma-nextjs-monorepo-workaround-plugin-0.0.0.tgz"
},
"dependencies": {
"db": "workspace:*",
Expand Down
Expand Up @@ -5,7 +5,7 @@ Ensures that your Prisma files are copied.
## Next.js

```js
const { PrismaPlugin } = require('@prisma/webpack-plugin')
const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin')

module.exports = {
webpack: (config, { isServer }) => {
Expand All @@ -21,7 +21,7 @@ module.exports = {
## Webpack

```js
const { PrismaPlugin } = require('@prisma/webpack-plugin')
const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin')

module.exports = {
plugins: [new PrismaPlugin()],
Expand Down
File renamed without changes.
@@ -1,5 +1,5 @@
{
"name": "@prisma/webpack-plugin",
"name": "@prisma/nextjs-monorepo-workaround-plugin",
"version": "0.0.0",
"description": "Ensures that your Prisma files are copied",
"main": "index.js",
Expand Down

0 comments on commit 22f3464

Please sign in to comment.