Skip to content

Commit 85cb1f2

Browse files
authored
Update settings for publishing to npm (#4)
1 parent c705f9f commit 85cb1f2

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# starter-code-cli
22
CLI tool for generating starter code.
3+
4+
Publishing steps:
5+
1. Sign into the uwblueprint-infra account using `npm login`
6+
2. Run `npm publish --dry-run` to see what files would be published
7+
3. To actually publish to npm, run `npm publish --access public`

index.ts

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env node
12
import cli from "./cli";
23

34
import Scrubber from "./scrubber/scrubber";

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"name": "starter-code-cli",
2+
"name": "@uwblueprint/create-bp-app",
33
"version": "1.0.0",
44
"description": "Starter code generation CLI tool.",
55
"main": "index.js",
6+
"bin": "bin/index.js",
67
"repository": "[email protected]:uwblueprint/starter-code-cli.git",
78
"author": "UW Blueprint Internal Tools",
89
"license": "MIT",
@@ -34,5 +35,6 @@
3435
"figlet": "^1.5.0",
3536
"inquirer": "^8.0.0",
3637
"yargs": "^16.2.0"
37-
}
38+
},
39+
"files": ["bin/"]
3840
}

0 commit comments

Comments
 (0)