Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update everything to latest, try bundling #20

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.editorconfig
.travis.yml
/test/
/typedoc/
tslint.json
build
24 changes: 24 additions & 0 deletions api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./index.d.ts",
"docModel": {
"enabled": false
},
"apiReport": {
"enabled": false
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "./build/index.d.ts"
},
"messages": {
"extractorMessageReporting": {
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-forgotten-export": {
"logLevel": "none"
}
}
}
}
2 changes: 1 addition & 1 deletion lib/Pool.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare namespace Pool {
* is no limit to the number of queued connection requests. (Default: 0)
*/
queueLimit?: number;

/**
* Enable keep-alive on the socket. It's disabled by default, but the
* user can enable it and supply an initial delay.
Expand Down
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@
"name": "@types/mysql",
"version": "2.0.0",
"description": "Typings for mysql",
"typings": "index.d.ts",
"scripts": {
"build": "typings bundle -o test/bundle.d.ts",
"test": "tsc -p test",
"bundle": "api-extractor --debug run",
"lint": "tslint -c tslint.json \"lib/**/*.d.ts\" index.d.ts",
"typedoc": "typedoc --includeDeclarations --excludeExternals --name mysql --mode file --readme none --out typedoc lib index.d.ts typings/index.d.ts"
"typedoc": "typedoc --includeDeclarations --excludeExternals --name mysql --mode file --readme none --out typedoc lib index.d.ts typings/index.d.ts",
"prepublishOnly": "npm run test && npm run lint"
},
"author": "Felix Becker <[email protected]>",
"license": "ISC",
"devDependencies": {
"mysql": "~2.17.1",
"tslint": "^5.2.0",
"typedoc": "^0.7.0",
"typescript": "^2.0.3",
"typings": "^2.1.1"
"@microsoft/api-extractor": "^7.9.19",
"@types/node": "^14.11.1",
"mysql": "~2.18.1",
"tslint": "^6.1.3",
"typedoc": "^0.19.2",
"typescript": "^4.0.3"
}
}
2 changes: 1 addition & 1 deletion test/test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import * as fs from 'fs';
import * as mysql from 'mysql';
import * as mysql from '../index';
import * as stream from 'stream';

// Connections
Expand Down
10 changes: 2 additions & 8 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
{
"compilerOptions": {
"target": "es2015",
"noImplicitAny": true,
"noImplicitAny": false,
"strictNullChecks": true,
"module": "commonjs",
"typeRoots": [
"../typings/globals",
"../typings/modules"
]
},
"files": [
"test.ts",
"bundle.d.ts",
"../typings/index.d.ts"
"test.ts"
]
}
6 changes: 1 addition & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"noImplicitAny": true,
"strictNullChecks": true,
"target": "es2015",
"module": "commonjs",
"typeRoots": [
"typings/globals",
"typings/modules"
]
"module": "commonjs"
}
}
2 changes: 0 additions & 2 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"one-variable-per-declaration": [true, "ignore-for-loop"],
"curly": true,
"no-empty": false,
"no-duplicate-key": true,
"no-unreachable": true,
"no-unused-expression": true,
"no-unused-variable": [false],
"eofline": true,
Expand Down
9 changes: 0 additions & 9 deletions typings.json

This file was deleted.