diff --git a/.eslintrc.yml b/.eslintrc.yml index 46e140a..11e728e 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -4,6 +4,7 @@ env: root: true ignorePatterns: - dist + - plop - prisma plugins: - jest diff --git a/package.json b/package.json index 037b7ba..722a49f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "MIT", "files": [ "dist", - ".plop" + "plop" ], "description": "Sequelize models generator for prisma schema", "author": { diff --git a/.plop/Model.ts.hbs b/plop/Model.ts.hbs similarity index 100% rename from .plop/Model.ts.hbs rename to plop/Model.ts.hbs diff --git a/.plop/index.ts.hbs b/plop/index.ts.hbs similarity index 100% rename from .plop/index.ts.hbs rename to plop/index.ts.hbs diff --git a/.plop/plopfile.js b/plop/plopfile.js similarity index 100% rename from .plop/plopfile.js rename to plop/plopfile.js diff --git a/.plop/utils/find.ts.hbs b/plop/utils/find.ts.hbs similarity index 100% rename from .plop/utils/find.ts.hbs rename to plop/utils/find.ts.hbs diff --git a/.plop/utils/index.ts.hbs b/plop/utils/index.ts.hbs similarity index 100% rename from .plop/utils/index.ts.hbs rename to plop/utils/index.ts.hbs diff --git a/src/index.ts b/src/index.ts index 3ddcf65..d9e21b1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,7 +27,7 @@ generatorHandler({ : parseEnvValue(options.generator.output); try { - const plop = nodePlop(path.join(__dirname, '../.plop/plopfile.js'), { destBasePath: outputDir, force: true }); + const plop = nodePlop(path.join(__dirname, '../plop/plopfile.js'), { destBasePath: outputDir, force: true }); const utilsGenerator = plop.getGenerator('utils'); const indexGenerator = plop.getGenerator('index.ts'); const modelGenerator = plop.getGenerator('Model.ts');