Skip to content

Commit 484bb4c

Browse files
fix(package): improve filtering of published files (#27)
Currently, some files like `.nvmrc` & `renovate.json` are published which isn't intended. Instead of using an `.npmignore` file, it's easier to filter the list of published files by using the [files](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files) parameter in the `package.json`.
1 parent bd091ac commit 484bb4c

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.npmignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "@emartech/json-logger",
33
"description": "Tiny and fast json logger with namespace support",
44
"main": "dist/index.js",
5+
"files": [
6+
"dist",
7+
"!**.spec.*"
8+
],
59
"scripts": {
610
"test": "mocha --require ts-node/register --extension ts ./src --recursive",
711
"test:watch": "mocha --require ts-node/register --extension ts ./src --recursive --watch",

0 commit comments

Comments
 (0)