Skip to content

Commit 1b5f007

Browse files
committed
completed 2nd step of the project
1 parent 502c534 commit 1b5f007

File tree

5 files changed

+31
-1
lines changed

5 files changed

+31
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
install:
2+
npm ci
3+
4+
brain-games:
5+
./bin/brain-games.js
6+
7+
publish:
8+
npm publish --dry-run

bin/brain-games.js

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
#!/usr/bin/env node
2+
13
console.log('Welcome to the Brain Games!')

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
},
1313
"license": "ISC",
1414
"author": "",
15-
"type": "commonjs",
15+
"type": "module",
1616
"main": "index.js",
1717
"scripts": {
1818
"test": "echo \"Error: no test specified\" && exit 1"
19+
},
20+
"bin": {
21+
"brain-games": "bin/brain-games.js"
1922
}
2023
}

0 commit comments

Comments
 (0)