-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[experimental] yarn pnp #7726
[experimental] yarn pnp #7726
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,12 @@ module.exports = { | |
'website/.*', | ||
'e2e/runtime-internal-module-registry/__mocks__', | ||
], | ||
projects: ['<rootDir>', '<rootDir>/examples/*/'], | ||
projects: ['<rootDir>'], // TODO examples | ||
resolver: require.resolve('jest-pnp-resolver'), | ||
setupFilesAfterEnv: ['<rootDir>/testSetupFile.js'], | ||
snapshotSerializers: [ | ||
'<rootDir>/packages/pretty-format/build/plugins/ConvertAnsi.js', | ||
'jest-snapshot-serializer-raw', | ||
require.resolve('jest-snapshot-serializer-raw'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can land this on master |
||
], | ||
testEnvironment: './packages/jest-environment-node', | ||
testPathIgnorePatterns: [ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
"devDependencies": { | ||
"@babel/core": "^7.1.0", | ||
"@babel/plugin-transform-strict-mode": "^7.0.0", | ||
"@babel/plugin-transform-modules-commonjs": "^7.1.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should go on master |
||
"@babel/preset-env": "^7.1.0", | ||
"@babel/preset-flow": "^7.0.0", | ||
"@babel/preset-react": "^7.0.0", | ||
|
@@ -26,6 +27,7 @@ | |
"eslint-plugin-prettier": "^3.0.1", | ||
"eslint-plugin-react": "^7.1.0", | ||
"eslint-plugin-relay": "~0.0.19", | ||
"estraverse": "^4.2.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? |
||
"execa": "^1.0.0", | ||
"flow-bin": "^0.91.0", | ||
"glob": "^7.1.1", | ||
|
@@ -35,6 +37,7 @@ | |
"istanbul-lib-coverage": "^2.0.2", | ||
"jasmine-reporters": "^2.2.0", | ||
"jest-junit": "^6.0.1", | ||
"jest-pnp-resolver": "^1.0.2", | ||
"jest-silent-reporter": "^0.1.1", | ||
"jest-snapshot-serializer-raw": "^1.1.0", | ||
"jquery": "^3.2.1", | ||
|
@@ -48,11 +51,14 @@ | |
"mkdirp": "^0.5.1", | ||
"mocha": "^5.0.1", | ||
"mock-fs": "^4.4.1", | ||
"pnp-webpack-plugin": "^1.2.1", | ||
"prettier": "^1.16.1", | ||
"prettylint": "^1.0.0", | ||
"progress": "^2.0.0", | ||
"promise": "^8.0.2", | ||
"readable-stream": "^3.0.3", | ||
"realpath-native": "^1.0.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for the integration test? if so, should land on master |
||
"request": "^2.88.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if it's for |
||
"resolve": "^1.4.0", | ||
"rimraf": "^2.6.2", | ||
"slash": "^2.0.0", | ||
|
@@ -84,6 +90,9 @@ | |
"typecheck": "flow check --include-warnings", | ||
"watch": "yarn build && node ./scripts/watch.js" | ||
}, | ||
"installConfig": { | ||
"pnp": true | ||
}, | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah... no. Not sure how to properly deal with it, though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to be clear, I did not intend for this to be merged in this or some similar form 馃槃 this PR is just to share what I've done and what the problems are so we can possibly get back to this when there are good solutions for them :)