reggi / impose

Fetches and overlays a json file over package.json in cwd

Home Page:https://www.npmjs.com/package/impose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

impose

I have a static github pages site that serves an json file with all the prettier config changes:

Here https://reggi.github.io/prettier-config.json looks like:

{
  "scripts": {
    "style": "prettier --check .",
    "style:fix": "prettier --write ."
  },
  "prettier": "@github/prettier-config",
  "devDependencies": {
    "@github/prettier-config": "^0.0.6",
    "prettier": "^3.2.5"
  }
}

Now, I can use this command in my package directory and update the package.json with these additions.

npx impose https://reggi.github.io/prettier-config.json

About

Fetches and overlays a json file over package.json in cwd

https://www.npmjs.com/package/impose


Languages

Language:JavaScript 100.0%