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 /dist
/node_modules /node_modules
/build /build
/plugins
# Logs # Logs
logs logs

View File

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

View File

@ -1,4 +1,4 @@
require = require('esm')(module /*, options*/); require = require('esm')(module /*, options*/);
module.exports = { 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", "name": "@aditama-labs/nest-autocrud",
"version": "0.0.10", "version": "0.0.11",
"description": "NestJS Auto CRUD Library", "description": "NestJS Auto CRUD Library",
"author": "Supan Adit Pratama", "author": "Supan Adit Pratama",
"license": "MIT", "license": "MIT",
@ -13,7 +13,7 @@
"build": "nest build", "build": "nest build",
"build:lib:skeleton": "tsc -p libs/skeleton/tsconfig.lib.json", "build:lib:skeleton": "tsc -p libs/skeleton/tsconfig.lib.json",
"build:lib:prisma": "tsc -p libs/prisma/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\"", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"libs/**/*.ts\"",
"start": "nest start", "start": "nest start",
"start:dev": "nest start --watch", "start:dev": "nest start --watch",

View File

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