@alexaegis/ts 0.14.0 → 0.15.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/base.json CHANGED
@@ -36,6 +36,7 @@
36
36
  "noUnusedParameters": true,
37
37
  "forceConsistentCasingInFileNames": true,
38
38
  "verbatimModuleSyntax": true,
39
+ "rewriteRelativeImportExtensions": true,
39
40
  "incremental": true
40
41
  },
41
42
  "include": [],
package/dist/index.cjs ADDED
@@ -0,0 +1,6 @@
1
+ //#region src/index.ts
2
+ var src_default = {};
3
+ //#endregion
4
+ module.exports = src_default;
5
+
6
+ //# sourceMappingURL=index.cjs.map
@@ -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,6 @@
1
+ //#region src/index.ts
2
+ var src_default = {};
3
+ //#endregion
4
+ export { src_default as default };
5
+
6
+ //# sourceMappingURL=index.js.map
@@ -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.14.0",
4
+ "version": "0.15.0",
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
- "engines": {
40
- "node": ">=20",
41
- "pnpm": ">=9"
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
- "@alexaegis/vite": "^0.14.0",
59
- "@types/node": "^22.14.1",
48
+ "@types/node": "^25.5.0",
60
49
  "ts-node": "^10.9.2",
61
- "typescript": "^5.8.3",
62
- "vite": "^6.3.2"
50
+ "typescript": "^5.9.3",
51
+ "vite": "^8.0.1"
63
52
  },
64
53
  "devDependencies": {
65
- "@alexaegis/eslint-config-vitest": "^0.14.0",
66
- "@alexaegis/vite": "^0.14.0",
67
- "@alexaegis/vitest": "^0.14.0",
68
- "publint": "^0.3.12",
69
- "vite": "^6.3.2",
70
- "vitest": "^3.1.1"
54
+ "publint": "^0.3.18",
55
+ "vite": "^8.0.1",
56
+ "vite-plugin-dts": "^4.5.4",
57
+ "vitest": "^4.1.0",
58
+ "@alexaegis/eslint-config-vitest": "^0.15.0",
59
+ "@alexaegis/vite": "^0.15.0",
60
+ "@alexaegis/vitest": "^0.15.0"
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 dist",
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
+ [![npm](https://img.shields.io/npm/v/@alexaegis/ts/latest)](https://www.npmjs.com/package/@alexaegis/ts)
4
+ [![ci](https://github.com/AlexAegis/js-tooling/actions/workflows/cicd.yml/badge.svg)](https://github.com/AlexAegis/js-tooling/actions/workflows/cicd.yml)
5
+ [![codacy](https://app.codacy.com/project/badge/Grade/7939332dc9454dc1b0529e720ff902e6)](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
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const index = {};
3
- module.exports = index;
package/index.js DELETED
@@ -1,4 +0,0 @@
1
- const index = {};
2
- export {
3
- index as default
4
- };
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