Merge pull request #129 from fantasticit/fix/tsc-build

chore: fix run tsc build error in windows
This commit is contained in:
fantasticit 2022-07-15 14:33:23 +08:00 committed by GitHub
commit 63e33731ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 3 additions and 86 deletions

View File

@ -12,7 +12,7 @@
"sideEffects": false,
"license": "MIT",
"scripts": {
"build": "tsc src/*.ts --outDir lib --skipLibCheck --declaration --lib ES6"
"build": "tsc src/index.ts --outDir lib --skipLibCheck --declaration --lib ES6"
},
"files": [
"lib",

View File

@ -12,7 +12,7 @@
"sideEffects": false,
"license": "MIT",
"scripts": {
"build": "tsc src/*.ts --outDir lib --skipLibCheck --declaration --lib ES6"
"build": "tsc src/index.ts --outDir lib --skipLibCheck --declaration --lib ES6"
},
"files": [
"lib",

View File

@ -1,34 +0,0 @@
export declare const CollectorApiDefinition: {
/**
*
*/
toggle: {
method: "post";
server: "toggle";
client: () => string;
};
/**
*
*/
check: {
method: "post";
server: "check";
client: () => string;
};
/**
*
*/
wikis: {
method: "get";
server: "wikis";
client: () => string;
};
/**
*
*/
documents: {
method: "get";
server: "documents";
client: () => string;
};
};

View File

@ -1,37 +0,0 @@
"use strict";
exports.__esModule = true;
exports.CollectorApiDefinition = void 0;
exports.CollectorApiDefinition = {
/**
*
*/
toggle: {
method: 'post',
server: 'toggle',
client: function () { return '/collector/toggle'; }
},
/**
*
*/
check: {
method: 'post',
server: 'check',
client: function () { return '/collector/check'; }
},
/**
*
*/
wikis: {
method: 'get',
server: 'wikis',
client: function () { return '/collector/wikis'; }
},
/**
*
*/
documents: {
method: 'get',
server: 'documents',
client: function () { return '/collector/documents'; }
}
};

View File

@ -1,4 +0,0 @@
export declare enum CollectType {
document = "document",
wiki = "wiki"
}

View File

@ -1,8 +0,0 @@
"use strict";
exports.__esModule = true;
exports.CollectType = void 0;
var CollectType;
(function (CollectType) {
CollectType["document"] = "document";
CollectType["wiki"] = "wiki";
})(CollectType = exports.CollectType || (exports.CollectType = {}));

View File

@ -12,7 +12,7 @@
"sideEffects": false,
"license": "MIT",
"scripts": {
"build": "tsc src/*.ts --outDir lib --skipLibCheck --declaration --lib ES6"
"build": "tsc src/index.ts --outDir lib --skipLibCheck --declaration --lib ES6"
},
"files": [
"lib",