@alevnyacow/nzmt 0.8.0 → 0.8.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.
Files changed (2) hide show
  1. package/bin/cli.js +4 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -277,7 +277,9 @@ function initDI() {
277
277
  "export const fromDI = <Result>(key: DITokens) => {",
278
278
  "\tconst container = getActiveContainer()",
279
279
  "\treturn container.get<Result>(key)",
280
- "}"
280
+ "}",
281
+ "",
282
+ "export { DITokens }"
281
283
  ].join('\n'))
282
284
  };
283
285
 
@@ -292,7 +294,7 @@ function initPrisma() {
292
294
 
293
295
  fs.writeFileSync(path.resolve(prismaFolder, 'client.ts'), [
294
296
  `import { PrismaPg } from '@prisma/adapter-pg'`,
295
- `import { PrismaClient } from '${prismaClientPath}'`,
297
+ `import { PrismaClient } from '${prismaClientPath.replace('.', '@')}'`,
296
298
  ``,
297
299
  `const adapter = new PrismaPg({`,
298
300
  `\tconnectionString: process.env.DATABASE_URL`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "repository": {
6
6
  "type": "git",