-
Notifications
You must be signed in to change notification settings - Fork 14
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sim specific PhET-iO wrappers not being copied during build #785
Comments
Proposed fixes pushed, it seemed straightforward. @zepumph can you please review? |
CT seems to be showing errors. @zepumph mentioned it may be related to this issue. |
The changes look good. Thanks @samreid. Review from here:
|
I considered // A
_.at( packageObject, "phet[ 'phet-io' ].wrappers" );// eslint-disable-line
// B
_.at( packageObject, 'phet[\'phet-io\'].wrappers' );
// C
_.at( packageObject, 'phet["phet-io"].wrappers' ); I prefer the former because searches for |
Also, I reviewed the changes that moved classroom activity, lab book and arithmetic wrappers out. Tested building and running arithmetic's wrapper. Looks great, closing. |
No need to reopen if you still like your way more, I just wanted to post what the difference would be. I think I prefer the latter, but likely only because // Add sim-specific wrappers
const simSpecificWrappers = packageObject.phet &&
packageObject.phet[ 'phet-io' ] &&
packageObject.phet[ 'phet-io' ].wrappers ?
packageObject.phet[ 'phet-io' ].wrappers : [];
// vs
const simSpecificWrappers = _.at( packageObject, 'phet[ "phet-io" ].wrappers' )[ 0 ] ?
_.at( packageObject, 'phet[ "phet-io" ].wrappers' )[ 0 ] : []; |
It's a good use of |
Discovered in https://github.com/phetsims/phet-io-wrapper-sonification/issues/84. It seems the ability to build a sim-specific PhET-iO wrapper was dropped, probably circa 34923a2 (part of #680) or thereabouts.
The text was updated successfully, but these errors were encountered: