Skip to content

Commit 47a3da9

Browse files
committed
refactor: 💡 enabled npm publish
This commit includes changes to enable npm publish for global installation BREAKING CHANGE: 🧨 YES
1 parent 7aa2908 commit 47a3da9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+18
-8
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
./**/node_modules

README.md

+2-2

bin/fastify-typescript-generator.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
3+
require('../lib/cli');

lib/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

cli.js renamed to lib/cli.js

File renamed without changes.
File renamed without changes.

package.json

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fastify-typescript-generator",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "Generate new Fastify applications similar to express-generate which but sets it up to use TypeScript instead",
55
"scripts": {
66
"fastify-generator-typescript": "node cli.js",
@@ -9,13 +9,17 @@
99
"commit-a": "git add . && git cz",
1010
"commit": "git cz"
1111
},
12-
"main": "cli.js",
13-
"bin": {
14-
"fastify-generator-typescript": "cli.js"
15-
},
1612
"repository": {
1713
"type": "git",
18-
"url": "git+https://github.com/open-devs/fastify-generator-typescript.git"
14+
"url": "git+https://github.com/open-devs/fastify-typescript-generator.git"
15+
},
16+
"main": "./lib/cli.js",
17+
"module": "./lib/cli.js",
18+
"unpkg": "./lib/cli.js",
19+
"bin": {
20+
"fastify-gen": "./bin/fastify-typescript-generator.js",
21+
"fastify-ts-gen": "./bin/fastify-typescript-generator.js",
22+
"fastify-typescript-generator": "./bin/fastify-typescript-generator.js"
1923
},
2024
"keywords": [
2125
"generator",
@@ -55,6 +59,7 @@
5559
"Alok Raj (alok722)"
5660
],
5761
"license": "MIT",
62+
"private": false,
5863
"bugs": {
5964
"url": "https://github.com/open-devs/fastify-generator-typescript/issues"
6065
},

0 commit comments

Comments
 (0)