chooser icon indicating copy to clipboard operation
chooser copied to clipboard

[Bug] No Windows equivalent command for `build-component` in package.json

Open kartiksprajapati opened this issue 2 years ago • 3 comments

Description

I noticed that the package.json file in this repository contains a build-component command for Linux, but there doesn't seem to be a Windows equivalent command for it. This can be problematic for Windows users who need to build the component.

Reproduction

  1. Clone git repo and install all dependencies with npm install
  2. Run npm run build-component
  3. See error.

Expectation

I expect that the package.json file should contain a command that works on both Windows and Unix-based systems, or there should be clear instructions on how Windows users can build the component.

Screenshots

image

Environment

  • Device: Laptop
  • OS: Windows 11

Resolution

  • [x] I would be interested in resolving this bug.

kartiksprajapati avatar Apr 02 '23 07:04 kartiksprajapati

Well Noticed! the page I guess we can update the build command using the following command

{
  "name": "my-component",
  "version": "1.0.0",
  "description": "My awesome component",
  "scripts": {
    "build-component": "npm run clean && webpack --config webpack.config.js",
    "clean": "rm -rf dist",
    "start": "webpack serve --config webpack.config.js"
  },
  "devDependencies": {
    "webpack": "^5.64.4",
    "webpack-cli": "^4.9.1"
  }
}


To run we can do this

npm run build-component

Nice work

Pursottam6003 avatar Apr 04 '23 17:04 Pursottam6003

hi is this issue still open I would like to work on this issue

dhruvgupta0503 avatar Dec 26 '23 08:12 dhruvgupta0503

Is it still open?

ayushdasgupta avatar Jan 06 '24 19:01 ayushdasgupta