react-styleguidist icon indicating copy to clipboard operation
react-styleguidist copied to clipboard

react-styleguidist v12.0.0-alpha9.9 published assets do not match source code

Open noahnu opened this issue 3 years ago • 2 comments

Current behavior

When I download react-styleguidist from npm, inspect the downloaded files, and look at the "lib/client/rsg-components/Examples.js" file, I see:

import React from 'react';
import PropTypes from 'prop-types';
import ExamplesRenderer from 'rsg-components/Examples/ExamplesRenderer';

var Examples = function Examples(_ref) {
  var content = _ref.content,
      componentName = _ref.componentName;
  var ExampleComponent = content.default;
  return /*#__PURE__*/React.createElement(ExamplesRenderer, {
    componentName: componentName
  }, /*#__PURE__*/React.createElement(ExampleComponent, {
    componentName: componentName
  }));
};

Examples.propTypes = {
  content: PropTypes.any.isRequired,
  componentName: PropTypes.string.isRequired,
  exampleMode: PropTypes.string.isRequired
};
export default Examples;

however, when I compile the code via npm run compile after cloning the repo, I see:

image

The latter matches the source code.

To reproduce

Install [email protected] and inspect the node modules.

Expected behavior

The shipped/published code should match the source code. Something is going wrong in the publish process perhaps? For reference, I'm using yarn v3 to install react-styleguidist.

noahnu avatar Jan 11 '22 15:01 noahnu

😴 This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week without any further activity. Consider opening a pull request if you still have this issue or want this feature.

stale[bot] avatar Apr 16 '22 06:04 stale[bot]

Ping

noahnu avatar Apr 17 '22 01:04 noahnu