@esportsplus/typescript 0.0.20 → 0.1.0
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/.editorconfig +9 -9
- package/.gitattributes +2 -2
- package/.github/dependabot.yml +23 -0
- package/.github/workflows/bump.yml +7 -0
- package/.github/workflows/publish.yml +14 -0
- package/package.json +26 -26
- package/package.template.json +17 -17
- package/src/types.ts +23 -23
- package/tsconfig.base.json +27 -27
- package/tsconfig.json +9 -9
- package/tsconfig.template.json +10 -10
package/.editorconfig
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
root = true
|
|
2
|
-
|
|
3
|
-
[*]
|
|
4
|
-
indent_style = space
|
|
5
|
-
indent_size = 4
|
|
6
|
-
charset = utf-8
|
|
7
|
-
trim_trailing_whitespace = true
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
end_of_line = lf
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
indent_style = space
|
|
5
|
+
indent_size = 4
|
|
6
|
+
charset = utf-8
|
|
7
|
+
trim_trailing_whitespace = true
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
end_of_line = lf
|
package/.gitattributes
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# Auto detect text files and perform LF normalization
|
|
2
|
-
* text=auto
|
|
1
|
+
# Auto detect text files and perform LF normalization
|
|
2
|
+
* text=auto
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
registries:
|
|
8
|
+
npm-npmjs:
|
|
9
|
+
token: ${{secrets.NPM_TOKEN}}
|
|
10
|
+
type: npm-registry
|
|
11
|
+
url: https://registry.npmjs.org
|
|
12
|
+
updates:
|
|
13
|
+
- package-ecosystem: "npm"
|
|
14
|
+
directory: "/"
|
|
15
|
+
groups:
|
|
16
|
+
production-dependencies:
|
|
17
|
+
dependency-type: "production"
|
|
18
|
+
development-dependencies:
|
|
19
|
+
dependency-type: "development"
|
|
20
|
+
registries:
|
|
21
|
+
- npm-npmjs
|
|
22
|
+
schedule:
|
|
23
|
+
interval: "daily"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
name: publish to npm
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [published]
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
workflow_run:
|
|
7
|
+
workflows: [bump]
|
|
8
|
+
types:
|
|
9
|
+
- completed
|
|
10
|
+
jobs:
|
|
11
|
+
publish:
|
|
12
|
+
secrets:
|
|
13
|
+
NPM_TOKEN_PUBLISHING : ${{ secrets.NPM_TOKEN_PUBLISHING }}
|
|
14
|
+
uses: esportsplus/workflows/.github/workflows/publish.yml@main
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"author": "ICJR",
|
|
3
|
-
"dependencies": {
|
|
4
|
-
"tsc-alias": "^1.8.
|
|
5
|
-
"typescript": "^5.
|
|
6
|
-
},
|
|
7
|
-
"exports": {
|
|
8
|
-
"./package.json": "./package.json",
|
|
9
|
-
"./tsconfig.base.json": "./tsconfig.base.json",
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./build/index.d.ts",
|
|
12
|
-
"default": "./build/index.js"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"main": "build/index.js",
|
|
16
|
-
"name": "@esportsplus/typescript",
|
|
17
|
-
"private": false,
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "tsc && tsc-alias",
|
|
20
|
-
"-": "-",
|
|
21
|
-
"prepare": "npm run build",
|
|
22
|
-
"prepublishOnly": "npm run build"
|
|
23
|
-
},
|
|
24
|
-
"types": "build/index.d.ts",
|
|
25
|
-
"version": "0.0
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"author": "ICJR",
|
|
3
|
+
"dependencies": {
|
|
4
|
+
"tsc-alias": "^1.8.9",
|
|
5
|
+
"typescript": "^5.4.5"
|
|
6
|
+
},
|
|
7
|
+
"exports": {
|
|
8
|
+
"./package.json": "./package.json",
|
|
9
|
+
"./tsconfig.base.json": "./tsconfig.base.json",
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./build/index.d.ts",
|
|
12
|
+
"default": "./build/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"main": "build/index.js",
|
|
16
|
+
"name": "@esportsplus/typescript",
|
|
17
|
+
"private": false,
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc && tsc-alias",
|
|
20
|
+
"-": "-",
|
|
21
|
+
"prepare": "npm run build",
|
|
22
|
+
"prepublishOnly": "npm run build"
|
|
23
|
+
},
|
|
24
|
+
"types": "build/index.d.ts",
|
|
25
|
+
"version": "0.1.0"
|
|
26
|
+
}
|
package/package.template.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"author": "ICJR",
|
|
3
|
-
"devDependencies": {
|
|
4
|
-
"@esportsplus/typescript": "^0.0.1"
|
|
5
|
-
},
|
|
6
|
-
"main": "build/index.js",
|
|
7
|
-
"name": "",
|
|
8
|
-
"private": false,
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "tsc && tsc-alias",
|
|
11
|
-
"-": "-",
|
|
12
|
-
"prepare": "npm run build",
|
|
13
|
-
"prepublishOnly": "npm run build"
|
|
14
|
-
},
|
|
15
|
-
"types": "build/index.d.ts",
|
|
16
|
-
"version": "0.0.1"
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"author": "ICJR",
|
|
3
|
+
"devDependencies": {
|
|
4
|
+
"@esportsplus/typescript": "^0.0.1"
|
|
5
|
+
},
|
|
6
|
+
"main": "build/index.js",
|
|
7
|
+
"name": "",
|
|
8
|
+
"private": false,
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc && tsc-alias",
|
|
11
|
+
"-": "-",
|
|
12
|
+
"prepare": "npm run build",
|
|
13
|
+
"prepublishOnly": "npm run build"
|
|
14
|
+
},
|
|
15
|
+
"types": "build/index.d.ts",
|
|
16
|
+
"version": "0.0.1"
|
|
17
|
+
}
|
package/src/types.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
type Function = (...args: unknown[]) => Promise<unknown> | unknown;
|
|
2
|
-
|
|
3
|
-
type NeverAsync<T> =
|
|
4
|
-
T extends Promise<unknown>
|
|
5
|
-
? never
|
|
6
|
-
: T extends (...args: unknown[]) => unknown
|
|
7
|
-
? NeverAsync<ReturnType<T>> extends never
|
|
8
|
-
? never
|
|
9
|
-
: T
|
|
10
|
-
: T;
|
|
11
|
-
|
|
12
|
-
type NeverFunction<T> =
|
|
13
|
-
T extends Promise<unknown>
|
|
14
|
-
? never
|
|
15
|
-
: T extends (...args: unknown[]) => unknown
|
|
16
|
-
? never
|
|
17
|
-
: T;
|
|
18
|
-
|
|
19
|
-
type Prettify<T> = {
|
|
20
|
-
[K in keyof T]: T[K];
|
|
21
|
-
} & {};
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
type Function = (...args: unknown[]) => Promise<unknown> | unknown;
|
|
2
|
+
|
|
3
|
+
type NeverAsync<T> =
|
|
4
|
+
T extends Promise<unknown>
|
|
5
|
+
? never
|
|
6
|
+
: T extends (...args: unknown[]) => unknown
|
|
7
|
+
? NeverAsync<ReturnType<T>> extends never
|
|
8
|
+
? never
|
|
9
|
+
: T
|
|
10
|
+
: T;
|
|
11
|
+
|
|
12
|
+
type NeverFunction<T> =
|
|
13
|
+
T extends Promise<unknown>
|
|
14
|
+
? never
|
|
15
|
+
: T extends (...args: unknown[]) => unknown
|
|
16
|
+
? never
|
|
17
|
+
: T;
|
|
18
|
+
|
|
19
|
+
type Prettify<T> = {
|
|
20
|
+
[K in keyof T]: T[K];
|
|
21
|
+
} & {};
|
|
22
|
+
|
|
23
|
+
|
|
24
24
|
export { Function, NeverAsync, NeverFunction, Prettify };
|
package/tsconfig.base.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"allowJs": true,
|
|
5
|
-
"allowSyntheticDefaultImports": true,
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
9
|
-
"module": "esnext",
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"noUnusedLocals": true,
|
|
12
|
-
"noUnusedParameters": true,
|
|
13
|
-
"paths": {
|
|
14
|
-
"~/*": ["src/*"],
|
|
15
|
-
"~/storage/*": ["storage/*"]
|
|
16
|
-
},
|
|
17
|
-
"removeComments": true,
|
|
18
|
-
"resolveJsonModule": true,
|
|
19
|
-
"skipLibCheck": true,
|
|
20
|
-
"strict": true,
|
|
21
|
-
"target": "esnext"
|
|
22
|
-
},
|
|
23
|
-
"ts-node": {
|
|
24
|
-
"compilerOptions": {
|
|
25
|
-
"module": "commonjs"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"allowJs": true,
|
|
5
|
+
"allowSyntheticDefaultImports": true,
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
9
|
+
"module": "esnext",
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"noUnusedLocals": true,
|
|
12
|
+
"noUnusedParameters": true,
|
|
13
|
+
"paths": {
|
|
14
|
+
"~/*": ["src/*"],
|
|
15
|
+
"~/storage/*": ["storage/*"]
|
|
16
|
+
},
|
|
17
|
+
"removeComments": true,
|
|
18
|
+
"resolveJsonModule": true,
|
|
19
|
+
"skipLibCheck": true,
|
|
20
|
+
"strict": true,
|
|
21
|
+
"target": "esnext"
|
|
22
|
+
},
|
|
23
|
+
"ts-node": {
|
|
24
|
+
"compilerOptions": {
|
|
25
|
+
"module": "commonjs"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
28
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"declarationDir": "build",
|
|
5
|
-
"outDir": "build"
|
|
6
|
-
},
|
|
7
|
-
"exclude": ["node_modules"],
|
|
8
|
-
"extends": "./tsconfig.base.json",
|
|
9
|
-
"include": ["src"]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"declarationDir": "build",
|
|
5
|
+
"outDir": "build"
|
|
6
|
+
},
|
|
7
|
+
"exclude": ["node_modules"],
|
|
8
|
+
"extends": "./tsconfig.base.json",
|
|
9
|
+
"include": ["src"]
|
|
10
10
|
}
|
package/tsconfig.template.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"declarationDir": "build",
|
|
6
|
-
"outDir": "build"
|
|
7
|
-
},
|
|
8
|
-
"exclude": ["node_modules"],
|
|
9
|
-
"extends": "./node_modules/@esportsplus/typescript/tsconfig.base.json",
|
|
10
|
-
"include": ["src"]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"declarationDir": "build",
|
|
6
|
+
"outDir": "build"
|
|
7
|
+
},
|
|
8
|
+
"exclude": ["node_modules"],
|
|
9
|
+
"extends": "./node_modules/@esportsplus/typescript/tsconfig.base.json",
|
|
10
|
+
"include": ["src"]
|
|
11
11
|
}
|