Skip to content

Commit 4121705

Browse files
authored
ref: Nextjs CI improvements (#3666)
* Remove lockfiles from nextjs example app tests * Use yarn resolutions to use local deps only
1 parent 4a46e21 commit 4121705

File tree

4 files changed

+16
-2589
lines changed

4 files changed

+16
-2589
lines changed

packages/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"test:unit": "jest",
5858
"test:integration": "run-s test:integration:clean test:integration:build test:integration:server test:integration:client",
5959
"test:integration:clean": "cd test/integration && rimraf node_modules .next .env.local",
60-
"test:integration:build": "cd test/integration && yarn && yarn build",
60+
"test:integration:build": "cd test/integration && yarn --no-lockfile && yarn build",
6161
"test:integration:server": "cd test/integration && node test/server.js --silent",
6262
"test:integration:client": "cd test/integration && node test/client.js --silent",
6363
"pack": "npm pack",

packages/nextjs/test/integration/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
yarn.lock
8+
package-lock.json
79

810
# testing
911
/coverage

packages/nextjs/test/integration/package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
22
"name": "with-typescript",
3-
"version": "1.0.0",
43
"scripts": {
54
"dev": "next",
65
"build": "next build",
7-
"start": "next start",
8-
"type-check": "tsc"
6+
"start": "next start"
97
},
108
"dependencies": {
119
"@sentry/nextjs": "file:../../",
@@ -23,5 +21,16 @@
2321
"typescript": "^4.2.4",
2422
"yargs": "^16.2.0"
2523
},
26-
"license": "MIT"
24+
"resolutions": {
25+
"@sentry/browser": "file:../../../browser",
26+
"@sentry/core": "file:../../../core",
27+
"@sentry/hub": "file:../../../hub",
28+
"@sentry/integrations": "file:../../../integrations",
29+
"@sentry/minimal": "file:../../../minimal",
30+
"@sentry/node": "file:../../../node",
31+
"@sentry/react": "file:../../../react",
32+
"@sentry/tracing": "file:../../../tracing",
33+
"@sentry/types": "file:../../../types",
34+
"@sentry/utils": "file:../../../utils"
35+
}
2736
}

0 commit comments

Comments
 (0)