@alexaegis/ts 0.14.1 → 0.15.1
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/base.json +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/package.json +25 -35
- package/readme.md +50 -0
- package/index.cjs +0 -3
- package/index.js +0 -4
- package/license +0 -21
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.d.ts.map → dist/index.d.ts.map} +0 -0
- /package/{index.spec.d.ts → dist/index.spec.d.ts} +0 -0
- /package/{index.spec.d.ts.map → dist/index.spec.d.ts.map} +0 -0
package/base.json
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"skipLibCheck": true,
|
|
21
21
|
"skipDefaultLibCheck": true,
|
|
22
22
|
"preserveWatchOutput": true,
|
|
23
|
-
"baseUrl": ".",
|
|
24
23
|
"strict": true,
|
|
25
24
|
"checkJs": true,
|
|
26
25
|
"allowJs": true,
|
|
@@ -36,6 +35,7 @@
|
|
|
36
35
|
"noUnusedParameters": true,
|
|
37
36
|
"forceConsistentCasingInFileNames": true,
|
|
38
37
|
"verbatimModuleSyntax": true,
|
|
38
|
+
"rewriteRelativeImportExtensions": true,
|
|
39
39
|
"incremental": true
|
|
40
40
|
},
|
|
41
41
|
"include": [],
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["export default {};\n"],"mappings":";AAAA,IAAA,cAAe,EAAE"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export default {};\n"],"mappings":";AAAA,IAAA,cAAe,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexaegis/ts",
|
|
3
3
|
"description": "My typescript configurations",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.15.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"archetype": {
|
|
@@ -14,38 +14,28 @@
|
|
|
14
14
|
"tsconfig",
|
|
15
15
|
"typescript"
|
|
16
16
|
],
|
|
17
|
-
"author": {
|
|
18
|
-
"email": "alexaegis@pm.me",
|
|
19
|
-
"name": "Alex Aegis",
|
|
20
|
-
"url": "https://github.com/AlexAegis"
|
|
21
|
-
},
|
|
22
|
-
"homepage": "https://github.com/AlexAegis/js-tooling",
|
|
23
17
|
"repository": {
|
|
24
18
|
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
25
|
-
"type": "git"
|
|
26
|
-
"directory": "packages/ts"
|
|
27
|
-
},
|
|
28
|
-
"bugs": {
|
|
29
|
-
"email": "alexaegis@pm.me",
|
|
30
|
-
"url": "https://github.com/AlexAegis/js-tooling/issues"
|
|
19
|
+
"type": "git"
|
|
31
20
|
},
|
|
32
21
|
"type": "module",
|
|
33
|
-
"config": {
|
|
34
|
-
"engine-strict": true
|
|
35
|
-
},
|
|
36
22
|
"publishConfig": {
|
|
37
23
|
"access": "public"
|
|
38
24
|
},
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
25
|
+
"files": [
|
|
26
|
+
"angular.json",
|
|
27
|
+
"base.json",
|
|
28
|
+
"dist",
|
|
29
|
+
"node.json",
|
|
30
|
+
"svelte.json",
|
|
31
|
+
"web.json"
|
|
32
|
+
],
|
|
43
33
|
"exports": {
|
|
44
34
|
".": {
|
|
45
|
-
"types": "./index.d.ts",
|
|
46
|
-
"import": "./index.js",
|
|
47
|
-
"require": "./index.cjs",
|
|
48
|
-
"default": "./index.js"
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"import": "./dist/index.js",
|
|
37
|
+
"require": "./dist/index.cjs",
|
|
38
|
+
"default": "./dist/index.js"
|
|
49
39
|
},
|
|
50
40
|
"./angular": "./angular.json",
|
|
51
41
|
"./base": "./base.json",
|
|
@@ -55,19 +45,19 @@
|
|
|
55
45
|
"./web": "./web.json"
|
|
56
46
|
},
|
|
57
47
|
"dependencies": {
|
|
58
|
-
"@
|
|
59
|
-
"@types/node": "^22.14.1",
|
|
48
|
+
"@types/node": "^25.6.0",
|
|
60
49
|
"ts-node": "^10.9.2",
|
|
61
|
-
"typescript": "^
|
|
62
|
-
"vite": "^
|
|
50
|
+
"typescript": "^6.0.3",
|
|
51
|
+
"vite": "^8.0.10"
|
|
63
52
|
},
|
|
64
53
|
"devDependencies": {
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"vitest": "^
|
|
54
|
+
"publint": "^0.3.18",
|
|
55
|
+
"vite": "^8.0.10",
|
|
56
|
+
"vite-plugin-dts": "^5.0.0",
|
|
57
|
+
"vitest": "^4.1.5",
|
|
58
|
+
"@alexaegis/eslint-config-vitest": "^0.15.1",
|
|
59
|
+
"@alexaegis/vitest": "^0.15.1",
|
|
60
|
+
"@alexaegis/vite": "^0.15.1"
|
|
71
61
|
},
|
|
72
62
|
"scripts": {
|
|
73
63
|
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/ts",
|
|
@@ -81,7 +71,7 @@
|
|
|
81
71
|
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/ts",
|
|
82
72
|
"lint:tsc_": "tsc --noEmit",
|
|
83
73
|
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/ts",
|
|
84
|
-
"publint_": "publint
|
|
74
|
+
"publint_": "publint",
|
|
85
75
|
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/ts",
|
|
86
76
|
"test_": "vitest --passWithNoTests --coverage --run",
|
|
87
77
|
"test:watch": "vitest --passWithNoTests --coverage",
|
package/readme.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# [@alexaegis/ts](https://github.com/AlexAegis/js-tooling/tree/master/packages/ts)
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@alexaegis/ts)
|
|
4
|
+
[](https://github.com/AlexAegis/js-tooling/actions/workflows/cicd.yml)
|
|
5
|
+
[](https://www.codacy.com/gh/AlexAegis/js-tooling/dashboard?utm_source=github.com&utm_medium=referral&utm_content=AlexAegis/js-tooling&utm_campaign=Badge_Grade)
|
|
6
|
+
|
|
7
|
+
These are base shared `tsconfig.json`s from which all other `tsconfig.json`'s
|
|
8
|
+
inherit from.
|
|
9
|
+
|
|
10
|
+
> The exposed `tsconfig.json` files are in the root of this package and not
|
|
11
|
+
> inside `src` or `static` because I want to use them in the host repository of
|
|
12
|
+
> this project too. And typescript doesn't care if I expose these using
|
|
13
|
+
> `exports`. No, the `extends` field in `tsconfig` is just a path from the
|
|
14
|
+
> package, so they have to match in the source and the distributed package too.
|
|
15
|
+
|
|
16
|
+
## Info about some options
|
|
17
|
+
|
|
18
|
+
### `"moduleResolution": "nodenext",`
|
|
19
|
+
|
|
20
|
+
Very important for interop with ES Modules. When importing a locally bundled
|
|
21
|
+
dependency, using 'node' would try to import cjs modules from es modules,
|
|
22
|
+
resulting in a runtime error.
|
|
23
|
+
|
|
24
|
+
TODO: Explore `"moduleResolution": "bundler",`
|
|
25
|
+
|
|
26
|
+
### `"target": "es2020",`
|
|
27
|
+
|
|
28
|
+
In vite projects this is not used, make sure that the vite config uses the
|
|
29
|
+
target that you want
|
|
30
|
+
|
|
31
|
+
### No `include` or `files` field
|
|
32
|
+
|
|
33
|
+
When both of these options are missing typescript will just import everything it
|
|
34
|
+
can within its folder except what you're excluding. And that's exactly what we
|
|
35
|
+
need.
|
|
36
|
+
|
|
37
|
+
## Development Troubleshooting
|
|
38
|
+
|
|
39
|
+
> For potential issues while developing this package. These are no concerns of
|
|
40
|
+
> the consumer.
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
error during build:
|
|
44
|
+
TSConfckParseError: failed to resolve "extends":"@alexaegis/ts/node" in js-tooling/packages/ts/tsconfig.json
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
This package consumes itself for building. Its `tsconfig` is using definitions
|
|
48
|
+
defined within this plugin so if the package gets malformed like `exports` gets
|
|
49
|
+
removed from this package.json, then it will fail to build. As long as the
|
|
50
|
+
tsconfigs exported here are valid, and they are exported it will be fine.
|
package/index.cjs
DELETED
package/index.js
DELETED
package/license
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Győri Sándor
|
|
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.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|