@ktarmyshov/npm-typescript-template 0.0.3
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/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/submodule1/index.d.ts +1 -0
- package/dist/submodule1/index.js +1 -0
- package/dist/submodule1/submodule.d.ts +1 -0
- package/dist/submodule1/submodule.js +5 -0
- package/dist/submodule2/index.d.ts +1 -0
- package/dist/submodule2/index.js +1 -0
- package/dist/submodule2/submodule.d.ts +1 -0
- package/dist/submodule2/submodule.js +5 -0
- package/dist/submodule3.d.ts +1 -0
- package/dist/submodule3.js +5 -0
- package/package.json +84 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 [Contributors](https://github.com/kt-npm-modules/npm-typescript-template/graphs/contributors)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[](https://github.com/kt-npm-modules/npm-typescript-template/actions/workflows/ci.yml)
|
|
2
|
+
[](https://sonarcloud.io/summary/new_code?id=kt-npm-modules_npm-typescript-template)
|
|
3
|
+
[](https://sonarcloud.io/summary/new_code?id=kt-npm-modules_npm-typescript-template)
|
|
4
|
+
[](https://sonarcloud.io/summary/new_code?id=kt-npm-modules_npm-typescript-template)
|
|
5
|
+
[](https://sonarcloud.io/summary/new_code?id=kt-npm-modules_npm-typescript-template)
|
|
6
|
+
[](https://sonarcloud.io/summary/new_code?id=kt-npm-modules_npm-typescript-template)
|
|
7
|
+
|
|
8
|
+
# npm-typescript-template
|
|
9
|
+
|
|
10
|
+
Template repo for an NPM module in typescript
|
|
11
|
+
|
|
12
|
+
- Version tracking with changeset
|
|
13
|
+
- Dependabot updates & auto-generation of changesets
|
|
14
|
+
- Format on save with eslint in vscode
|
|
15
|
+
- Monthly auto-release, if only dependabot changes are included
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './submodule.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './submodule.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function submodule1(): undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './submodule.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './submodule.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function submodule2(): undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function submodule3(): undefined;
|
package/package.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ktarmyshov/npm-typescript-template",
|
|
3
|
+
"description": "Template repository for npm packages written in TypeScript",
|
|
4
|
+
"version": "0.0.3",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Konstantin Tarmyshov",
|
|
8
|
+
"email": "k.tarmyshov@googlemail.com"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"node",
|
|
12
|
+
"javascript",
|
|
13
|
+
"typescript",
|
|
14
|
+
"nodejs",
|
|
15
|
+
"node_modules",
|
|
16
|
+
"npm",
|
|
17
|
+
"template",
|
|
18
|
+
"auto-update",
|
|
19
|
+
"auto-release",
|
|
20
|
+
"sonar",
|
|
21
|
+
"sonarcloud",
|
|
22
|
+
"codeql",
|
|
23
|
+
"eslint",
|
|
24
|
+
"prettier",
|
|
25
|
+
"changeset"
|
|
26
|
+
],
|
|
27
|
+
"homepage": "https://github.com/kt-npm-modules/npm-typescript-template#readme",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/kt-npm-modules/npm-typescript-template.git"
|
|
31
|
+
},
|
|
32
|
+
"type": "module",
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"types": "./dist/index.d.ts",
|
|
37
|
+
"import": "./dist/index.js",
|
|
38
|
+
"default": "./dist/index.js"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "rimraf ./dist && tsc --project tsconfig.json && npm run prepack",
|
|
43
|
+
"build:release": "rimraf ./dist && tsc --project tsconfig-release.json && npm run prepack",
|
|
44
|
+
"prepare": "bash ./scripts/npm-link.sh",
|
|
45
|
+
"prepack": "publint",
|
|
46
|
+
"format": "prettier --write .",
|
|
47
|
+
"lint": "prettier --check . && eslint .",
|
|
48
|
+
"check": "tsc --skipLibCheck",
|
|
49
|
+
"check:test": "tsc --project tsconfig-test.json --skipLibCheck",
|
|
50
|
+
"test": "npm run check:test && vitest run",
|
|
51
|
+
"coverage": "vitest run --coverage",
|
|
52
|
+
"changeset:version": "changeset version && git add --all",
|
|
53
|
+
"changeset:publish": "changeset publish"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist",
|
|
57
|
+
"!dist/**/*.test.*",
|
|
58
|
+
"!dist/**/*.spec.*",
|
|
59
|
+
"!tests",
|
|
60
|
+
"!examples",
|
|
61
|
+
"!benchmarks"
|
|
62
|
+
],
|
|
63
|
+
"bugs": {
|
|
64
|
+
"url": "https://github.com/kt-npm-modules/npm-typescript-template/issues"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@changesets/cli": "^2.28.1",
|
|
68
|
+
"@eslint/compat": "^1.2.7",
|
|
69
|
+
"@types/node": "^22.15.2",
|
|
70
|
+
"@vitest/coverage-istanbul": "^3.1.1",
|
|
71
|
+
"eslint": "^9.22.0",
|
|
72
|
+
"eslint-config-prettier": "^10.1.2",
|
|
73
|
+
"prettier": "^3.5.3",
|
|
74
|
+
"publint": "^0.3.11",
|
|
75
|
+
"rimraf": "^6.0.1",
|
|
76
|
+
"tsc-alias": "^1.8.15",
|
|
77
|
+
"typescript": "^5.8.2",
|
|
78
|
+
"typescript-eslint": "^8.26.1",
|
|
79
|
+
"vitest": "^3.0.8"
|
|
80
|
+
},
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">=20"
|
|
83
|
+
}
|
|
84
|
+
}
|