Code Monkey home page Code Monkey logo

clean-package's People

Contributors

roydukkey avatar snaptags avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

clean-package's Issues

Change to ESM

Additionally, in order to improve the CLI experience, yargs will be used to allow for creating the --help content.

Remove should take precedence to Replace

This change will be breaking, but will ultimately be more predictable. It will also make it easier for using clean-package for things like ordering package.json keys.

Unexpected Token '?'

I'm running clean-package in our prepublishOnly script, but I'm getting errors on node 15 w/ npm 7.7.6:

> [email protected] prepublishOnly /home/runner/work/warframe-items/warframe-items
> npm_config_yes=true npx clean-package

npx: installed 14 in 2.59s
Unexpected token '?'

this is during a semantic-release run using clean-package before packing.

actions run | script

[BUG]: extends key path

hello there....
clean-package is awesome ❤️❤️❤️ but its extends functionality is broken
i'm using config in package.json and i used path as relative to package.json

  "clean-package": {
    "extends": "../../../clean-package.config.json",
  }

but it gives error MODULE_NOT_FOUND and i saw your source code and you are using normal node require function to load extended config. And i used path relative to node_modules/clean-pacakge/dist/main.js and it works

  "clean-package": {
    // "extends": "../../../clean-package.config.json", // relative to package.json
    "extends": "../../../../../../clean-package.config.json" // relative to node_modules/clean-pacakge/dist/main.js
  }

also... i'm using monorepo and i created a package and hoist it with pnpm and use this config but it also doesn't work

  "clean-package": {
    "extends": "@frontplus-ui/clean-package-config"
  }

SOLUTION

if extends path is relative path use requireFile util from utils/requireFile as you are using it when config is string in package.json hint

Make `source-path` the first priority argument

Currently, the spec for the CLI is that the first optional, positional argument is backup-path. Then a source-path may optionally be specified before backup-path.

To simplify the API, source-path will be made the first optional, positional argument with the backup-path optionally following source-path.

Allow `remove` option to be additionally expressed as `String[][]`

There are package.json property keys that contain dots (.), namely exports. Since the dot has a special meaning, references to these properties are not possible simply by a string.

Consider the cost of updating the replace option to allow the similarly functionality.

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.