mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-23 22:52:59 +03:00
fix(): add build tsconfig & add main/types
This commit is contained in:
parent
e75415340b
commit
90cb548551
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,4 @@
|
||||
# lock
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
|
||||
# dependencies
|
||||
|
@ -1,6 +1,5 @@
|
||||
# source
|
||||
lib
|
||||
index.ts
|
||||
package-lock.json
|
||||
tsconfig.json
|
||||
.prettierrc
|
||||
|
1
index.d.ts
vendored
1
index.d.ts
vendored
@ -1 +0,0 @@
|
||||
export * from './dist';
|
6
index.js
6
index.js
@ -1,6 +0,0 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
exports.__esModule = true;
|
||||
__export(require("./dist"));
|
@ -1,6 +1,8 @@
|
||||
{
|
||||
"name": "nestjs-telegraf",
|
||||
"version": "2.0.0",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"description": "Telegraf module for NestJS",
|
||||
"keywords": [
|
||||
"nest",
|
||||
@ -25,7 +27,7 @@
|
||||
],
|
||||
"repository": "git@github.com:bukhalo/nestjs-telegraf.git",
|
||||
"scripts": {
|
||||
"build": "rm -rf dist && tsc -p tsconfig.json",
|
||||
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
||||
"precommit": "lint-staged",
|
||||
"prepublish:npm": "npm run build",
|
||||
"publish:npm": "npm publish --access public",
|
||||
|
7
tsconfig.build.json
Normal file
7
tsconfig.build.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "./lib"
|
||||
},
|
||||
"include": ["lib/**/*"]
|
||||
}
|
@ -13,6 +13,6 @@
|
||||
"outDir": "./dist",
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["lib/**/*", "./sample/**/*", "../index.ts"],
|
||||
"include": ["lib/**/*", "./sample/**/*"],
|
||||
"exclude": ["node_modules", "**/*.spec.ts"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user