Coder Social home page Coder Social logo

Comments (5)

sudo-suhas avatar sudo-suhas commented on May 24, 2024

Happens with yarn as well:

λ yarn
yarn install v0.27.5
[1/4] Resolving packages...
[2/4] Fetching packages...
warning [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ npm run build

> [email protected] build E:\Projects\repos\autodll-webpack-plugin
> del ./lib && babel src --out-dir lib

Invalid switch - "lib".
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `del ./lib && babel src --out-dir lib`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

from autodll-webpack-plugin.

asfktz avatar asfktz commented on May 24, 2024

Hi @sudo-suhas,
Thank you for letting me know, I was not aware of that.

I changed prepublish to prepublishOnly

About del ./lib && babel src --out-dir lib
I'm am not using windows, so I need a bit of help with that one,
If you cd into the project, and run ./node_modules/.bin/del ./lib, it works?

from autodll-webpack-plugin.

sudo-suhas avatar sudo-suhas commented on May 24, 2024

From del-cli readme

Since $ del is already a builtin command on Windows you need to use $ del-cli there.

I tried this as well. Works.

Edit: Made a PR as well.

from autodll-webpack-plugin.

asfktz avatar asfktz commented on May 24, 2024

I learn something new everyday. Merged. Thanks (:

from autodll-webpack-plugin.

sudo-suhas avatar sudo-suhas commented on May 24, 2024

I did too! Best part of open source 😄

from autodll-webpack-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.