-
-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dependency resolution when using pnpm (#774)
* fix dependency resolution when using pnpm * fix failed test * add test
- Loading branch information
1 parent
a150671
commit d1a2645
Showing
11 changed files
with
1,760 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs" | ||
} | ||
}, | ||
// so that ts files there is part of this ts project | ||
"include": [ | ||
"../../test/comparison-tests/testLib/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "typescript-pnpm", | ||
"main": "index.js", | ||
"dependencies": { | ||
"@types/react": "16.3.12", | ||
"@types/react-dom": "16.0.5", | ||
"office-ui-fabric-react": "5.88.0", | ||
"react": "16.3.2", | ||
"react-dom": "16.3.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,215 @@ | ||
dependencies: | ||
'@types/react': 16.3.12 | ||
'@types/react-dom': 16.0.5 | ||
office-ui-fabric-react: 5.88.0 | ||
react: 16.3.2 | ||
react-dom: 16.3.2 | ||
packages: | ||
/@microsoft/load-themed-styles/1.7.56: | ||
dev: false | ||
resolution: | ||
integrity: sha1-/fyQ+yS9QnMx1xuDzLjtJ69/4pM= | ||
/@types/node/10.0.4: | ||
dev: false | ||
resolution: | ||
integrity: sha512-RisaZmcmCLjRipAY7nVi3fmkIk4Z0JMn8YHdGF6qYMsIDpD0dfzz+3yy2dL5Q5aHWOnqPx51IRxkA44myknJvw== | ||
/@types/react-dom/16.0.5: | ||
dependencies: | ||
'@types/node': 10.0.4 | ||
'@types/react': 16.3.12 | ||
dev: false | ||
resolution: | ||
integrity: sha512-ony2hEYlGXCLWNAWWgbsHR7qVvDbeMRFc5b43+7dhj3n+zXzxz81HV9Yjpc3JD8vLCiwYoSLqFCI6bD0+0zG2Q== | ||
/@types/react/16.3.12: | ||
dependencies: | ||
csstype: 2.4.2 | ||
dev: false | ||
resolution: | ||
integrity: sha512-FfBhLC3QeXXEtjoGGLixS7cB305vzBOM1dZKtbUuXeTfjY0quzRRMxpqylC4QyUaLqdhNLdER0ZdHUGAVlGSCA== | ||
/@uifabric/icons/5.7.1: | ||
dependencies: | ||
'@uifabric/styling': 5.30.1 | ||
tslib: 1.9.0 | ||
dev: false | ||
resolution: | ||
integrity: sha512-UwfDU6A0bj/QAdTsO20g9mrKXo3zxvumkBWx0F0sEHn1DF/IQDiq4zYVBjRZ3NikQe2o7koWe3Gb0NR84Qr2Sg== | ||
/@uifabric/merge-styles/5.17.0: | ||
dependencies: | ||
tslib: 1.9.0 | ||
dev: false | ||
resolution: | ||
integrity: sha512-xA4sbfKgOAx42gD56/ch8hWI6b7Gp70JM0kMnTIyF0oPWd12Lkvm5IVy1QZWxPE9YENIj5fn/mFWV2qkWKnJxQ== | ||
/@uifabric/styling/5.30.1: | ||
dependencies: | ||
'@microsoft/load-themed-styles': 1.7.56 | ||
'@uifabric/merge-styles': 5.17.0 | ||
'@uifabric/utilities': 5.30.1 | ||
tslib: 1.9.0 | ||
dev: false | ||
resolution: | ||
integrity: sha512-FIPfljABxmhOp7f2ppR3/07D055dtAygtk5MIVhTzrJsyJuVFU560k7EyxJzXoMFptRaA3TH4obROP6qe8jQgA== | ||
/@uifabric/utilities/5.30.1: | ||
dependencies: | ||
'@uifabric/merge-styles': 5.17.0 | ||
prop-types: 15.6.1 | ||
tslib: 1.9.0 | ||
dev: false | ||
peerDependencies: | ||
react: ^0.14.9 || ^15.0.1-0 || ^16.0.0-0 | ||
react-dom: ^0.14.9 || ^15.0.1-0 || ^16.0.0-0 | ||
resolution: | ||
integrity: sha512-IbLhsCjkubLv/yAx+OxIQjXhGXxy5J7WpZMzsV9lPM6/CLXdfSkU5eX9C0FsvnGGzdaG2TzVqUFks1Z3VrqZFA== | ||
/asap/2.0.6: | ||
dev: false | ||
resolution: | ||
integrity: sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= | ||
/core-js/1.2.7: | ||
dev: false | ||
resolution: | ||
integrity: sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY= | ||
/csstype/2.4.2: | ||
dev: false | ||
resolution: | ||
integrity: sha512-1TnkyZwDy0oUl//6685j2bTMNe61SzntWntijNdmmEzvpYbGmVMZkj204gv4glcQp6z/ypg+YRziT91XVFmOyg== | ||
/encoding/0.1.12: | ||
dependencies: | ||
iconv-lite: 0.4.21 | ||
dev: false | ||
resolution: | ||
integrity: sha1-U4tm8+5izRq1HsMjgp0flIDHS+s= | ||
/fbjs/0.8.16: | ||
dependencies: | ||
core-js: 1.2.7 | ||
isomorphic-fetch: 2.2.1 | ||
loose-envify: 1.3.1 | ||
object-assign: 4.1.1 | ||
promise: 7.3.1 | ||
setimmediate: 1.0.5 | ||
ua-parser-js: 0.7.18 | ||
dev: false | ||
resolution: | ||
integrity: sha1-XmdDL1UNxBtXK/VYR7ispk5TN9s= | ||
/iconv-lite/0.4.21: | ||
dependencies: | ||
safer-buffer: 2.1.2 | ||
dev: false | ||
engines: | ||
node: '>=0.10.0' | ||
resolution: | ||
integrity: sha512-En5V9za5mBt2oUA03WGD3TwDv0MKAruqsuxstbMUZaj9W9k/m1CV/9py3l0L5kw9Bln8fdHQmzHSYtvpvTLpKw== | ||
/is-stream/1.1.0: | ||
dev: false | ||
engines: | ||
node: '>=0.10.0' | ||
resolution: | ||
integrity: sha1-EtSj3U5o4Lec6428hBc66A2RykQ= | ||
/isomorphic-fetch/2.2.1: | ||
dependencies: | ||
node-fetch: 1.7.3 | ||
whatwg-fetch: 2.0.4 | ||
dev: false | ||
resolution: | ||
integrity: sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk= | ||
/js-tokens/3.0.2: | ||
dev: false | ||
resolution: | ||
integrity: sha1-mGbfOVECEw449/mWvOtlRDIJwls= | ||
/loose-envify/1.3.1: | ||
dependencies: | ||
js-tokens: 3.0.2 | ||
dev: false | ||
resolution: | ||
integrity: sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg= | ||
/node-fetch/1.7.3: | ||
dependencies: | ||
encoding: 0.1.12 | ||
is-stream: 1.1.0 | ||
dev: false | ||
resolution: | ||
integrity: sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ== | ||
/object-assign/4.1.1: | ||
dev: false | ||
engines: | ||
node: '>=0.10.0' | ||
resolution: | ||
integrity: sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= | ||
/office-ui-fabric-react/5.88.0: | ||
dependencies: | ||
'@microsoft/load-themed-styles': 1.7.56 | ||
'@uifabric/icons': 5.7.1 | ||
'@uifabric/merge-styles': 5.17.0 | ||
'@uifabric/styling': 5.30.1 | ||
'@uifabric/utilities': 5.30.1 | ||
prop-types: 15.6.1 | ||
tslib: 1.9.0 | ||
dev: false | ||
peerDependencies: | ||
react: ^0.14.9 || ^15.0.1-0 || ^16.0.0-0 | ||
react-dom: ^0.14.9 || ^15.0.1-0 || ^16.0.0-0 | ||
resolution: | ||
integrity: sha512-Rz6q7wlIYwVurNqDusWX9YbvXjDsIS2qbRsam1Dg6iuNTefrZHFGrYV2c7T3NOBMEAA7Nc9muThqogHOF6lxQw== | ||
/promise/7.3.1: | ||
dependencies: | ||
asap: 2.0.6 | ||
dev: false | ||
resolution: | ||
integrity: sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg== | ||
/prop-types/15.6.1: | ||
dependencies: | ||
fbjs: 0.8.16 | ||
loose-envify: 1.3.1 | ||
object-assign: 4.1.1 | ||
dev: false | ||
resolution: | ||
integrity: sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ== | ||
/react-dom/16.3.2: | ||
dependencies: | ||
fbjs: 0.8.16 | ||
loose-envify: 1.3.1 | ||
object-assign: 4.1.1 | ||
prop-types: 15.6.1 | ||
dev: false | ||
peerDependencies: | ||
react: ^16.0.0 | ||
resolution: | ||
integrity: sha512-MMPko3zYncNrz/7gG17wJWUREZDvskZHXOwbttzl0F0L3wDmToyuETuo/r8Y5yvDejwYcRyWI1lvVBjLJWFwKA== | ||
/react/16.3.2: | ||
dependencies: | ||
fbjs: 0.8.16 | ||
loose-envify: 1.3.1 | ||
object-assign: 4.1.1 | ||
prop-types: 15.6.1 | ||
dev: false | ||
engines: | ||
node: '>=0.10.0' | ||
resolution: | ||
integrity: sha512-o5GPdkhciQ3cEph6qgvYB7LTOHw/GB0qRI6ZFNugj49qJCFfgHwVNjZ5u+b7nif4vOeMIOuYj3CeYe2IBD74lg== | ||
/safer-buffer/2.1.2: | ||
dev: false | ||
resolution: | ||
integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== | ||
/setimmediate/1.0.5: | ||
dev: false | ||
resolution: | ||
integrity: sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU= | ||
/tslib/1.9.0: | ||
dev: false | ||
resolution: | ||
integrity: sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ== | ||
/ua-parser-js/0.7.18: | ||
dev: false | ||
resolution: | ||
integrity: sha512-LtzwHlVHwFGTptfNSgezHp7WUlwiqb0gA9AALRbKaERfxwJoiX0A73QbTToxteIAuIaFshhgIZfqK8s7clqgnA== | ||
/whatwg-fetch/2.0.4: | ||
dev: false | ||
resolution: | ||
integrity: sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng== | ||
registry: 'https://registry.npmjs.org/' | ||
shrinkwrapMinorVersion: 5 | ||
shrinkwrapVersion: 3 | ||
specifiers: | ||
'@types/react': 16.3.12 | ||
'@types/react-dom': 16.0.5 | ||
office-ui-fabric-react: 5.88.0 | ||
react: 16.3.2 | ||
react-dom: 16.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { mergeStyles } from 'office-ui-fabric-react/lib/Styling'; | ||
|
||
mergeStyles({}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"compilerOptions": { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
devtool: 'inline-source-map', | ||
entry: './src/index.ts', | ||
mode: 'development', | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.tsx?$/, | ||
loader: 'ts-loader' | ||
} | ||
] | ||
}, | ||
resolve: { | ||
extensions: ['.ts', '.tsx', '.js'] | ||
}, | ||
stats: "errors-only" | ||
}; | ||
|
||
// for test harness purposes only, you would not need this in a normal project | ||
module.exports.resolveLoader = { alias: { 'ts-loader': require('path').join(__dirname, "../../../index.js") } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.