chore: change to package instead of dist

This commit is contained in:
Supan Adit Pratama 2024-10-29 09:48:50 +07:00
parent 8d8a8e4b5b
commit c31133c963
7 changed files with 34 additions and 5 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
/dist
/node_modules
/build
/plugins
# Logs
logs

View File

@ -3,6 +3,7 @@ libs
sample
test
e2e
/dist
/src
/prisma
/mod.ts

View File

@ -1,4 +1,4 @@
require = require('esm')(module /*, options*/);
module.exports = {
...require('./dist'),
...require('./plugins'),
};

View File

@ -1 +1 @@
export * from './dist';
export * from './plugins';

27
libs/tsconfig.lib.json Normal file
View File

@ -0,0 +1,27 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"sourceMap": false,
"outDir": "../plugins",
"skipLibCheck": true,
},
"include": [
"index.ts",
"prisma/**/*",
"skeleton/**/*",
],
"exclude": [
"node_modules",
"dist",
"test",
"**/*spec.ts",
]
}

View File

@ -1,6 +1,6 @@
{
"name": "@aditama-labs/nest-autocrud",
"version": "0.0.10",
"version": "0.0.11",
"description": "NestJS Auto CRUD Library",
"author": "Supan Adit Pratama",
"license": "MIT",
@ -13,7 +13,7 @@
"build": "nest build",
"build:lib:skeleton": "tsc -p libs/skeleton/tsconfig.lib.json",
"build:lib:prisma": "tsc -p libs/prisma/tsconfig.lib.json",
"build:libs": "tsc -p tsconfig.lib.json",
"build:libs": "tsc -p libs/tsconfig.lib.json",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"libs/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",

View File

@ -21,6 +21,6 @@
"node_modules",
"dist",
"test",
"**/*spec.ts"
"**/*spec.ts",
]
}