Skip to content

Commit 32ddcfb

Browse files
committed
chore: fix nx demo
1 parent ed4fa9c commit 32ddcfb

File tree

7 files changed

+42
-36
lines changed

7 files changed

+42
-36
lines changed

demos/nx-next-monorepo-demo/package-lock.json

Lines changed: 9 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/nx-next-monorepo-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
},
1010
"private": true,
1111
"dependencies": {
12+
"@netlify/plugin-nextjs": "file:plugin-wrapper",
1213
"@nrwl/next": "14.7.11",
1314
"core-js": "^3.6.5",
1415
"next": "12.3.1",
@@ -18,7 +19,6 @@
1819
"tslib": "^2.3.0"
1920
},
2021
"devDependencies": {
21-
"@netlify/plugin-nextjs": "file:../../packages/runtime",
2222
"@nrwl/cli": "14.7.11",
2323
"@nrwl/cypress": "14.7.11",
2424
"@nrwl/eslint-plugin-nx": "14.7.11",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# plugin-wrapper
2+
3+
This empty plugin exists to ensure the demo sites can use `"@netlify/plugin-local-install-core"` to run `npm install`,
4+
which in turn builds the runtime package. This is needed because `npm install` isn't run in the site if the dependencies
5+
are unchanged.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("../../../packages/runtime")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: '@netlify/plugin-nextjs'

demos/nx-next-monorepo-demo/plugin-wrapper/package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "local-plugin",
3+
"version": "1.0.0-alpha-local-wrapper",
4+
"main": "index.js",
5+
"license": "MIT",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
}
9+
}

0 commit comments

Comments
 (0)