nestjs-with-auth 1.0.0 → 1.0.1

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/bin/cli.js CHANGED
@@ -1,3 +1,2 @@
1
1
  #!/usr/bin/env node
2
-
3
2
  require('../src/index.js');
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "nestjs-with-auth",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "nestjs boilerplate with passport integrated",
5
5
  "license": "ISC",
6
6
  "author": "sangnd2x",
7
7
  "type": "commonjs",
8
8
  "main": "index.js",
9
9
  "bin": {
10
- "nest-with-auth": "./bin/cli.js"
10
+ "nestjs-with-auth": "./bin/cli.js"
11
11
  },
12
12
  "files": [
13
13
  "bin",
package/src/index.js CHANGED
@@ -16,17 +16,6 @@ program
16
16
  // process.exit(1);
17
17
  // }
18
18
 
19
- // Setup project
20
- const projectPath = await setupProject(projectName);
21
-
22
- // Install dependencies
23
- console.log(chalk.blue('\nInstalling dependencies...'));
24
- execSync('npm install', {cwd: projectPath, stdio: 'inherit'});
25
-
26
- // Run Prisma init if needed
27
- console.log(chalk.blue('\nGenerating Prisma client...'));
28
- execSync('npx prisma generate', {cwd: projectPath, stdio: 'inherit'});
29
-
30
19
  console.log(chalk.green(`\n✅ Project ${projectName} created successfully!`));
31
20
  console.log(chalk.blue(`\nNext steps:`));
32
21
  console.log(` cd ${projectName}`);
package/src/setup.js CHANGED
@@ -9,21 +9,6 @@ async function setupProject(projectName) {
9
9
  console.log('Creating project...');
10
10
  await fs.copy(templatePath, targetPath);
11
11
 
12
- // Update package.json with ORM dependencies
13
- const packageJsonPath = path.join(targetPath, 'package.json');
14
- const packageJson = await fs.readJSON(packageJsonPath);
15
-
16
- packageJson.name = projectName;
17
-
18
- // Add ORM-specific dependencies
19
- packageJson.dependencies['@prisma/client'] = '^5.0.0';
20
- packageJson.devDependencies['prisma'] = '^5.0.0';
21
-
22
- await fs.writeJSON(packageJsonPath, packageJson, {spaces: 2});
23
-
24
- // Generate ORM config files
25
- await generateOrmConfig(targetPath);
26
-
27
12
  return targetPath;
28
13
  }
29
14
 
@@ -1,6 +1,6 @@
1
1
  import "dotenv/config";
2
2
  import { PrismaPg } from '@prisma/adapter-pg'
3
- import { PrismaClient } from '../generated/prisma/client'
3
+ import { PrismaClient } from '../../generated/prisma/client'
4
4
 
5
5
  const connectionString = `${process.env.DATABASE_URL}`
6
6