create-nolly-template 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,9 +2,12 @@
2
2
  import prompts from 'prompts';
3
3
  import { registry } from './registry/index.js';
4
4
  import { buildProject } from './builder.js';
5
+ import packageJSON from '../package.json';
5
6
  async function printHelp() {
6
7
  console.log(`
7
- 🚀 create-nolly-template v1.0.0
8
+ 🚀 create-nolly-template v${packageJSON.version}
9
+
10
+ ${packageJSON.description}
8
11
 
9
12
  Usage:
10
13
  create-nolly-template Interactive wizard
@@ -20,7 +23,9 @@ Examples:
20
23
  }
21
24
  async function printAbout() {
22
25
  console.log(`
23
- 🚀 create-nolly-template
26
+ 🚀 create-nolly-template v${packageJSON.version}
27
+
28
+ ${packageJSON.description}
24
29
 
25
30
  Nolly's templates. Zero-config, TypeScript-first.
26
31
 
@@ -28,8 +33,8 @@ Templates: Fastify, WebSocket, Swagger, MongoDB, Prisma, and even more !
28
33
  Built with: TypeScript, ESM, fs-extra, prompts, and a lot of ❤️
29
34
 
30
35
  Made by Nolly, a passionate full-stack developer and open-source enthusiast.
31
- GitHub: thenolle/create-nolly-template
32
- License: MIT
36
+ GitHub: thenolle/${packageJSON.name}
37
+ License: ${packageJSON.license}
33
38
  `);
34
39
  process.exit(0);
35
40
  }
@@ -6,5 +6,17 @@ export const mongodbFeature = {
6
6
  dependencies: {
7
7
  'fastify-plugin': '^5.1.0',
8
8
  'mongodb': '^7.1.0'
9
- }
9
+ },
10
+ patches: [
11
+ {
12
+ targetPath: 'src/utils/env.ts',
13
+ operations: [
14
+ {
15
+ type: 'insertAfter',
16
+ pattern: "NODE_ENV: z.enum\\(\\['development', 'production', 'test'\\]\\)\\.default\\('development'\\)",
17
+ insert: "\tMONGODB_URI: z.string().default('mongodb://localhost:27017/myapp')"
18
+ }
19
+ ]
20
+ }
21
+ ]
10
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nolly-template",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "All of my opiniated templates in one place. This is a CLI tool to create a new project based on one of my templates.",
5
5
  "keywords": [
6
6
  "template",