mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2024-11-21 19:06:21 +00:00
feat: chaining index ts for distribution
This commit is contained in:
parent
5bb80ebe75
commit
4135a933f3
@ -9,6 +9,7 @@ test
|
||||
.eslintrc.js
|
||||
jsr.json
|
||||
mod.ts
|
||||
index.js
|
||||
nest-cli.json
|
||||
package-lock.json
|
||||
tsconfig.build.json
|
||||
|
9
index.js
9
index.js
@ -1,9 +0,0 @@
|
||||
require = require('esm')(module /*, options*/);
|
||||
module.exports = {
|
||||
// For npm run build:libs
|
||||
...require('./dist/libs/skeleton/src'),
|
||||
...require('./dist/libs/prisma/src'),
|
||||
// For Prisma Only
|
||||
// ...require('./dist/libs/prisma/prisma/src'),
|
||||
// ...require('./dist/libs/prisma/skeleton/src'),
|
||||
};
|
2
libs/index.ts
Normal file
2
libs/index.ts
Normal file
@ -0,0 +1,2 @@
|
||||
export * from './prisma/src/index';
|
||||
export * from './skeleton/src/index';
|
@ -1,9 +1,14 @@
|
||||
{
|
||||
"name": "@aditama-labs/nest-autocrud",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.5",
|
||||
"description": "NestJS Auto CRUD Library",
|
||||
"author": "Supan Adit Pratama",
|
||||
"license": "MIT",
|
||||
"main": "dist/libs/index.js",
|
||||
"publishConfig": {
|
||||
"directory": "dist",
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "nest build",
|
||||
"build:lib:skeleton": "tsc -p libs/skeleton/tsconfig.lib.json",
|
||||
|
@ -10,12 +10,13 @@
|
||||
"experimentalDecorators": true,
|
||||
"target": "es6",
|
||||
"sourceMap": false,
|
||||
"outDir": "./dist/libs",
|
||||
"outDir": "./dist",
|
||||
"rootDir": ".",
|
||||
"skipLibCheck": true,
|
||||
},
|
||||
"include": [
|
||||
"libs/prisma/src/**/*",
|
||||
"libs/skeleton/src/**/*"
|
||||
"index.ts",
|
||||
"libs/**/*",
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
|
Loading…
Reference in New Issue
Block a user