Skip to content

Commit

Permalink
fix(cli): fix cli shebangs and remove deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sudkumar committed May 7, 2021
1 parent 2ee2645 commit 83a449f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 2 additions & 0 deletions cli/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

import getColorForString from "../src/getColorForString"

const [, , ...args] = process.argv
Expand Down
12 changes: 11 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
},
"devDependencies": {
"@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-html": "^0.2.3",
"@rollup/plugin-node-resolve": "^10.0.0",
"chai": "^4.2.0",
"eslint": "^7.13.0",
Expand All @@ -55,6 +56,7 @@
"rollup": "^2.33.1",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-fill-html": "^1.1.0",
"rollup-plugin-preserve-shebangs": "^0.2.0",
"rollup-plugin-svelte": "^6.1.1",
"rollup-plugin-terser": "^7.0.2",
"serve": "^11.3.2",
Expand All @@ -65,9 +67,6 @@
"lib": "lib",
"test": "test"
},
"dependencies": {
"@rollup/plugin-html": "^0.2.3"
},
"eslintConfig": {
"parserOptions": {
"sourceType": "module",
Expand Down
2 changes: 2 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { terser } from "rollup-plugin-terser"
import svelte from "rollup-plugin-svelte"
import html from "@rollup/plugin-html"
import cleaner from "rollup-plugin-cleaner"
import { preserveShebangs } from "rollup-plugin-preserve-shebangs"

const production = !process.env.ROLLUP_WATCH

Expand Down Expand Up @@ -36,6 +37,7 @@ export default [
file: pkg.bin["generate-colors"],
format: "cjs",
},
plugins: [preserveShebangs()],
},
// docs
{
Expand Down

0 comments on commit 83a449f

Please sign in to comment.