Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit de92db1

Browse files
shellscapejoshwiens
authored andcommitted
fix(package): copy existing bin property (#108)
1 parent b3b0989 commit de92db1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tasks/package.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable no-template-curly-in-string */
22
const path = require('path');
3+
34
const meta = require('user-meta');
45
const gitUsername = require('git-username');
56
const { json, install } = require('mrm-core');
@@ -61,6 +62,7 @@ module.exports = (config) => {
6162
author: existing.author || `${name}`,
6263
homepage: `https://github.com/${repository}`,
6364
bugs: `https://github.com/${repository}/issues`,
65+
bin: existing.bin || '',
6466
main: existing.main || 'dist/cjs.js',
6567
engines: {
6668
node: `>= ${config.maintLTS} || >= ${config.activeLTS}`,

0 commit comments

Comments
 (0)