1.0.7 • Published 9 months ago

@nartallax/package-cutter v1.0.7

Weekly downloads
-
License
0BSD
Repository
github
Last release
9 months ago

Package Cutter

This tool can remove some properties from package.json.
Some of the properties you have in package.json are only required for development (like scripts, devDependencies, targets if you use Parcel), can grow pretty large and shouldn't actually be present in published package.
So, if your build process is advanced enough, you probably should throw them away when preparing your release.

Install

npm install @nartallax/package-cutter

Use

Intended to be invoked from command line:

# this will take ./package.json
# then remove default set of keys from it
# then put result in ./build_result/package.json
./node_modules/.bin/package-cutter --output ./build_result/package.json

# There are other CLI parameters like `--pretty` or `--keys`
# find out more by running
./node_modules/.bin/package-cutter --help

Alternatively, JS API exists:

import {cutPackageJson} from "@nartallax/package-cutter"

await cutPackageJson({
	output: "./target/package.json",
	pretty: true
})
1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago