@certd/commercial-core 1.25.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +23 -0
- package/.prettierrc +3 -0
- package/CHANGELOG.md +19 -0
- package/README.md +16 -0
- package/build.md +1 -0
- package/dist/d/configuration.d.ts +6 -0
- package/dist/d/index.d.ts +3 -0
- package/dist/d/modules/auto/auto-init.d.ts +3 -0
- package/dist/d/modules/auto/index.d.ts +1 -0
- package/dist/d/modules/index.d.ts +4 -0
- package/dist/d/modules/pay/index.d.ts +4 -0
- package/dist/d/modules/site/controller/site-controller.d.ts +17 -0
- package/dist/d/modules/site/index.d.ts +1 -0
- package/dist/d/modules/suite/index.d.ts +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +1 -0
- package/fix-esm-import-paths.js +96 -0
- package/package.json +55 -0
- package/rollup.config.js +39 -0
- package/tsconfig.json +42 -0
package/.eslintrc
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"parser": "@typescript-eslint/parser",
|
|
3
|
+
"plugins": [
|
|
4
|
+
"@typescript-eslint"
|
|
5
|
+
],
|
|
6
|
+
"extends": [
|
|
7
|
+
"plugin:@typescript-eslint/recommended",
|
|
8
|
+
"plugin:prettier/recommended",
|
|
9
|
+
"prettier"
|
|
10
|
+
],
|
|
11
|
+
"env": {
|
|
12
|
+
"mocha": true
|
|
13
|
+
},
|
|
14
|
+
"rules": {
|
|
15
|
+
"@typescript-eslint/no-var-requires": "off",
|
|
16
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
|
17
|
+
"@typescript-eslint/ban-ts-ignore": "off",
|
|
18
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
19
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
20
|
+
// "no-unused-expressions": "off",
|
|
21
|
+
"max-len": [0, 160, 2, { "ignoreUrls": true }]
|
|
22
|
+
}
|
|
23
|
+
}
|
package/.prettierrc
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [1.25.9](https://github.com/certd/certd/compare/v1.25.8...v1.25.9) (2024-10-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @certd/plus-core
|
|
9
|
+
|
|
10
|
+
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @certd/lib-huawei
|
|
13
|
+
|
|
14
|
+
# [1.22.0](https://github.com/certd/certd/compare/v1.21.2...v1.22.0) (2024-07-19)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* 升级midway,支持esm ([485e603](https://github.com/certd/certd/commit/485e603b5165c28bc08694997726eaf2a585ebe7))
|
|
19
|
+
* 支持postgresql ([3b19bfb](https://github.com/certd/certd/commit/3b19bfb4291e89064b3b407a80dae092d54747d5))
|
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
## Recommended IDE Setup
|
|
6
|
+
|
|
7
|
+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar)
|
|
8
|
+
|
|
9
|
+
## Type Support For `.vue` Imports in TS
|
|
10
|
+
|
|
11
|
+
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:
|
|
12
|
+
|
|
13
|
+
1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
|
|
14
|
+
2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.
|
|
15
|
+
|
|
16
|
+
You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).
|
package/build.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
18:05
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./auto-init.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseController, FileService, SysSettingsService } from "@certd/lib-server";
|
|
2
|
+
/**
|
|
3
|
+
*/
|
|
4
|
+
export declare class SysSiteController extends BaseController {
|
|
5
|
+
sysSettingsService: SysSettingsService;
|
|
6
|
+
fileService: FileService;
|
|
7
|
+
saveSiteInfo(body: any): Promise<{
|
|
8
|
+
data: any;
|
|
9
|
+
code: number;
|
|
10
|
+
message: string;
|
|
11
|
+
}>;
|
|
12
|
+
getSiteInfo(): Promise<{
|
|
13
|
+
data: any;
|
|
14
|
+
code: number;
|
|
15
|
+
message: string;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./controller/site-controller.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tes = 1;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@midwayjs/core"),t=require("@certd/pipeline"),o=require("@certd/lib-server");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var i=r(require("lodash-es"));function s(e,t,o,r){var i,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(n=(s<3?i(n):s>3?i(t,o,n):i(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n}function n(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}"function"==typeof SuppressedError&&SuppressedError,exports.Configuration=class{logger;async onReady(e){this.logger.info("commercial start")}},s([e.Logger(),n("design:type",Object)],exports.Configuration.prototype,"logger",void 0),exports.Configuration=s([e.Configuration({namespace:"commercial"})],exports.Configuration),exports.AutoInitCommercial=class{async init(){t.logger.info("初始化Commercial")}},s([e.Init(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",Promise)],exports.AutoInitCommercial.prototype,"init",null),exports.AutoInitCommercial=s([e.Autoload(),e.Scope(e.ScopeEnum.Singleton)],exports.AutoInitCommercial);var c,l;exports.SysSiteController=class extends o.BaseController{sysSettingsService;fileService;async saveSiteInfo(e){t.checkComm();const r=new o.SysSiteInfo;return i.merge(r,e),r.logo&&(r.logo=await this.fileService.saveFile(this.getUserId(),r.logo,"public")),r.loginLogo&&(r.loginLogo=await this.fileService.saveFile(this.getUserId(),r.loginLogo,"public")),await this.sysSettingsService.saveSetting(r),this.ok(r)}async getSiteInfo(){t.checkComm();const e=await this.sysSettingsService.getSetting(o.SysSiteInfo);return this.ok(e)}},s([e.Inject(),n("design:type",o.SysSettingsService)],exports.SysSiteController.prototype,"sysSettingsService",void 0),s([e.Inject(),n("design:type",o.FileService)],exports.SysSiteController.prototype,"fileService",void 0),s([e.Post("/save",{summary:"sys:settings:edit"}),(c=0,l=e.Body(e.ALL),function(e,t){l(e,t,c)}),n("design:type",Function),n("design:paramtypes",[Object]),n("design:returntype",Promise)],exports.SysSiteController.prototype,"saveSiteInfo",null),s([e.Post("/get",{summary:"sys:settings:view"}),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",Promise)],exports.SysSiteController.prototype,"getSiteInfo",null),exports.SysSiteController=s([e.Provide(),e.Controller("/api/sys/site")],exports.SysSiteController);exports.commercialEntities=[],exports.tes=1;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Logger as e,Configuration as t,Init as i,Autoload as o,Scope as s,ScopeEnum as n,Inject as r,Post as c,Body as a,ALL as p,Provide as g,Controller as l}from"@midwayjs/core";import{logger as y,checkComm as f}from"@certd/pipeline";import{BaseController as d,SysSiteInfo as m,SysSettingsService as u,FileService as v}from"@certd/lib-server";import*as S from"lodash-es";function h(e,t,i,o){var s,n=arguments.length,r=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(r=(n<3?s(r):n>3?s(t,i,r):s(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r}function b(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}"function"==typeof SuppressedError&&SuppressedError;let w=class{logger;async onReady(e){this.logger.info("commercial start")}};h([e(),b("design:type",Object)],w.prototype,"logger",void 0),w=h([t({namespace:"commercial"})],w);let j=class{async init(){y.info("初始化Commercial")}};h([i(),b("design:type",Function),b("design:paramtypes",[]),b("design:returntype",Promise)],j.prototype,"init",null),j=h([o(),s(n.Singleton)],j);const R=1;let I=class extends d{sysSettingsService;fileService;async saveSiteInfo(e){f();const t=new m;return S.merge(t,e),t.logo&&(t.logo=await this.fileService.saveFile(this.getUserId(),t.logo,"public")),t.loginLogo&&(t.loginLogo=await this.fileService.saveFile(this.getUserId(),t.loginLogo,"public")),await this.sysSettingsService.saveSetting(t),this.ok(t)}async getSiteInfo(){f();const e=await this.sysSettingsService.getSetting(m);return this.ok(e)}};var F,O;h([r(),b("design:type",u)],I.prototype,"sysSettingsService",void 0),h([r(),b("design:type",v)],I.prototype,"fileService",void 0),h([c("/save",{summary:"sys:settings:edit"}),(F=0,O=a(p),function(e,t){O(e,t,F)}),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",Promise)],I.prototype,"saveSiteInfo",null),h([c("/get",{summary:"sys:settings:view"}),b("design:type",Function),b("design:paramtypes",[]),b("design:returntype",Promise)],I.prototype,"getSiteInfo",null),I=h([g(),l("/api/sys/site")],I);const P=[];export{j as AutoInitCommercial,w as Configuration,I as SysSiteController,P as commercialEntities,R as tes};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as fs from "fs";
|
|
2
|
+
import * as path from "path";
|
|
3
|
+
|
|
4
|
+
// https://gist.github.com/lovasoa/8691344
|
|
5
|
+
async function* walk(dir) {
|
|
6
|
+
for await (const d of await fs.promises.opendir(dir)) {
|
|
7
|
+
const entry = path.join(dir, d.name);
|
|
8
|
+
if (d.isDirectory()) {
|
|
9
|
+
yield* walk(entry);
|
|
10
|
+
} else if (d.isFile()) {
|
|
11
|
+
yield entry;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function resolveImportPath(sourceFile, importPath, options) {
|
|
17
|
+
const sourceFileAbs = path.resolve(process.cwd(), sourceFile);
|
|
18
|
+
const root = path.dirname(sourceFileAbs);
|
|
19
|
+
const { moduleFilter = defaultModuleFilter } = options;
|
|
20
|
+
|
|
21
|
+
if (moduleFilter(importPath)) {
|
|
22
|
+
const importPathAbs = path.resolve(root, importPath);
|
|
23
|
+
let possiblePath = [path.resolve(importPathAbs, "./index.ts"), path.resolve(importPathAbs, "./index.js"), importPathAbs + ".ts", importPathAbs + ".js"];
|
|
24
|
+
|
|
25
|
+
if (possiblePath.length) {
|
|
26
|
+
for (let i = 0; i < possiblePath.length; i++) {
|
|
27
|
+
let entry = possiblePath[i];
|
|
28
|
+
if (fs.existsSync(entry)) {
|
|
29
|
+
const resolved = path.relative(root, entry.replace(/\.ts$/, ".js"));
|
|
30
|
+
|
|
31
|
+
if (!resolved.startsWith(".")) {
|
|
32
|
+
return "./" + resolved;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return resolved;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function replace(filePath, outFilePath, options) {
|
|
45
|
+
const code = fs.readFileSync(filePath).toString();
|
|
46
|
+
const newCode = code.replace(/(import|export) (.+?) from ('[^\n']+'|"[^\n"]+");/gs, function (found, action, imported, from) {
|
|
47
|
+
const importPath = from.slice(1, -1);
|
|
48
|
+
let resolvedPath = resolveImportPath(filePath, importPath, options);
|
|
49
|
+
|
|
50
|
+
if (resolvedPath) {
|
|
51
|
+
resolvedPath = resolvedPath.replaceAll("\\", "/");
|
|
52
|
+
console.log("\t", importPath, resolvedPath);
|
|
53
|
+
return `${action} ${imported} from "${resolvedPath}";`;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return found;
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
if (code !== newCode) {
|
|
60
|
+
fs.writeFileSync(outFilePath, newCode);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Then, use it with a simple async for loop
|
|
65
|
+
async function run(srcDir, options = defaultOptions) {
|
|
66
|
+
const { sourceFileFilter = defaultSourceFileFilter } = options;
|
|
67
|
+
|
|
68
|
+
for await (const entry of walk(srcDir)) {
|
|
69
|
+
if (sourceFileFilter(entry)) {
|
|
70
|
+
console.log(entry);
|
|
71
|
+
replace(entry, entry, options);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const defaultSourceFileFilter = function (sourceFilePath) {
|
|
77
|
+
return /\.(js|ts)$/.test(sourceFilePath) && !/node_modules/.test(sourceFilePath);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const defaultModuleFilter = function (importedModule) {
|
|
81
|
+
return !path.isAbsolute(importedModule) && !importedModule.startsWith("@") && !importedModule.endsWith(".js");
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const defaultOptions = {
|
|
85
|
+
sourceFileFilter: defaultSourceFileFilter,
|
|
86
|
+
moduleFilter: defaultModuleFilter,
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
// Switch this to test on one file or directly run on a directory.
|
|
90
|
+
const DEBUG = false;
|
|
91
|
+
|
|
92
|
+
if (DEBUG) {
|
|
93
|
+
replace("./src/index.ts", "./out.ts", defaultOptions);
|
|
94
|
+
} else {
|
|
95
|
+
await run("./src/", defaultOptions);
|
|
96
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@certd/commercial-core",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.25.9",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/d/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "vite",
|
|
11
|
+
"before-build": "rimraf dist && rimraf tsconfig.tsbuildinfo && rimraf .rollup.cache",
|
|
12
|
+
"build": "npm run before-build && rollup -c ",
|
|
13
|
+
"dev-build": "npm run before-build &&tsc --skipLibCheck",
|
|
14
|
+
"preview": "vite preview"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@certd/basic": "^1.25.9",
|
|
18
|
+
"@certd/lib-server": "^1.25.9",
|
|
19
|
+
"@certd/pipeline": "^1.25.9",
|
|
20
|
+
"dayjs": "^1.11.7",
|
|
21
|
+
"@midwayjs/core": "~3.17.1",
|
|
22
|
+
"@midwayjs/logger": "~3.4.2",
|
|
23
|
+
"@midwayjs/typeorm": "~3.17.1"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
|
|
27
|
+
"@rollup/plugin-commonjs": "^23.0.4",
|
|
28
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
29
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
30
|
+
"@rollup/plugin-terser": "^0.4.3",
|
|
31
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
32
|
+
"@types/chai": "^4.3.3",
|
|
33
|
+
"@types/node": "^18",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
|
35
|
+
"@typescript-eslint/parser": "^5.38.1",
|
|
36
|
+
"better-sqlite3": "^11.1.2",
|
|
37
|
+
"cross-env": "^6.0.0",
|
|
38
|
+
"eslint": "^8.24.0",
|
|
39
|
+
"eslint-config-prettier": "^8.5.0",
|
|
40
|
+
"eslint-plugin-import": "^2.26.0",
|
|
41
|
+
"eslint-plugin-node": "^11.1.0",
|
|
42
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
43
|
+
"mwts": "^1.3.0",
|
|
44
|
+
"mwtsc": "^1.4.0",
|
|
45
|
+
"prettier": "^2.8.8",
|
|
46
|
+
"rimraf": "^5.0.5",
|
|
47
|
+
"rollup": "^3.7.4",
|
|
48
|
+
"rollup-plugin-visualizer": "^5.8.2",
|
|
49
|
+
"ts-node": "^10.9.1",
|
|
50
|
+
"tslib": "^2.5.2",
|
|
51
|
+
"typeorm": "^0.3.11",
|
|
52
|
+
"typescript": "^5.4.2"
|
|
53
|
+
},
|
|
54
|
+
"gitHead": "afa8155fda10f9a32427b351454b460897295a2c"
|
|
55
|
+
}
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// const resolve = require("@rollup/plugin-node-resolve");
|
|
2
|
+
// const commonjs = require("@rollup/plugin-commonjs");
|
|
3
|
+
//const Typescript = require("rollup-plugin-typescript2");
|
|
4
|
+
import typescript from "@rollup/plugin-typescript";
|
|
5
|
+
import json from "@rollup/plugin-json";
|
|
6
|
+
import terser from "@rollup/plugin-terser";
|
|
7
|
+
export default {
|
|
8
|
+
input: "src/index.ts",
|
|
9
|
+
output: [
|
|
10
|
+
{
|
|
11
|
+
file: "dist/index.js",
|
|
12
|
+
format: "es",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
file: "dist/index.cjs",
|
|
16
|
+
format: "cjs",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
plugins: [
|
|
20
|
+
typescript({
|
|
21
|
+
target: "esnext",
|
|
22
|
+
rootDir: "src",
|
|
23
|
+
declaration: true,
|
|
24
|
+
declarationDir: "dist/d",
|
|
25
|
+
exclude: ["./node_modules/**", "./src/**/*.vue", "./src/**/*.spec.ts"],
|
|
26
|
+
allowSyntheticDefaultImports: true,
|
|
27
|
+
}),
|
|
28
|
+
json(),
|
|
29
|
+
terser({
|
|
30
|
+
compress: true,
|
|
31
|
+
mangle: true,
|
|
32
|
+
output: {
|
|
33
|
+
beautify: false,
|
|
34
|
+
comments: false,
|
|
35
|
+
},
|
|
36
|
+
}),
|
|
37
|
+
],
|
|
38
|
+
external: ["vue", "lodash-es", "dayjs", "log4js", "@midwayjs/core", "@certd/pipeline", "axios"],
|
|
39
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compileOnSave": true,
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"emitDecoratorMetadata": true,
|
|
10
|
+
"inlineSourceMap":true,
|
|
11
|
+
"noImplicitThis": true,
|
|
12
|
+
"noUnusedLocals": true,
|
|
13
|
+
"stripInternal": true,
|
|
14
|
+
"skipLibCheck": true,
|
|
15
|
+
"pretty": true,
|
|
16
|
+
"declaration": true,
|
|
17
|
+
"forceConsistentCasingInFileNames": true,
|
|
18
|
+
"typeRoots": [ "./typings", "./node_modules/@types"],
|
|
19
|
+
"outDir": "dist",
|
|
20
|
+
"rootDir": "src",
|
|
21
|
+
"composite": true,
|
|
22
|
+
"useDefineForClassFields": true,
|
|
23
|
+
"strict": false,
|
|
24
|
+
"declarationDir": "dist/d",
|
|
25
|
+
// "sourceMap": true,
|
|
26
|
+
"resolveJsonModule": true,
|
|
27
|
+
"isolatedModules": true,
|
|
28
|
+
"lib": ["ESNext", "DOM"],
|
|
29
|
+
},
|
|
30
|
+
"include": [
|
|
31
|
+
"src/**/*.ts",
|
|
32
|
+
"src/**/*.d.ts",
|
|
33
|
+
"src/**/*.json"
|
|
34
|
+
],
|
|
35
|
+
"exclude": [
|
|
36
|
+
"*.js",
|
|
37
|
+
"*.ts",
|
|
38
|
+
"dist",
|
|
39
|
+
"node_modules",
|
|
40
|
+
"test"
|
|
41
|
+
],
|
|
42
|
+
}
|