@venizia/dev-configs 0.4.8-1 → 0.4.8-10

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.
Files changed (77) hide show
  1. package/README.md +65 -16
  2. package/dist/cli/codemod/any-aliases.d.ts +35 -0
  3. package/dist/cli/codemod/any-aliases.js +544 -0
  4. package/dist/cli/codemod/any-aliases.js.map +1 -0
  5. package/dist/cli/codemod/async-style.d.ts +2 -2
  6. package/dist/cli/codemod/async-style.js +4 -2
  7. package/dist/cli/codemod/async-style.js.map +1 -1
  8. package/dist/cli/codemod/connector-imports.d.ts +5 -1
  9. package/dist/cli/codemod/connector-imports.js +21 -7
  10. package/dist/cli/codemod/connector-imports.js.map +1 -1
  11. package/dist/cli/codemod/env-get.d.ts +56 -0
  12. package/dist/cli/codemod/env-get.js +599 -0
  13. package/dist/cli/codemod/env-get.js.map +1 -0
  14. package/dist/cli/codemod/index.js +31 -2
  15. package/dist/cli/codemod/index.js.map +1 -1
  16. package/dist/cli/codemod/namespace-functions/index.d.ts +2 -1
  17. package/dist/cli/codemod/namespace-functions/index.js +14 -5
  18. package/dist/cli/codemod/namespace-functions/index.js.map +1 -1
  19. package/dist/cli/codemod/namespace-functions/mappings/core-server.js +6 -14
  20. package/dist/cli/codemod/namespace-functions/mappings/core-server.js.map +1 -1
  21. package/dist/cli/codemod/namespace-functions/mappings/helpers.d.ts +3 -0
  22. package/dist/cli/codemod/namespace-functions/mappings/helpers.js +4 -9
  23. package/dist/cli/codemod/namespace-functions/mappings/helpers.js.map +1 -1
  24. package/dist/cli/codemod/namespace-functions/mappings/kernel.js +1 -1
  25. package/dist/cli/codemod/namespace-functions/mappings/kernel.js.map +1 -1
  26. package/dist/cli/codemod/namespace-functions/reverse.d.ts +40 -0
  27. package/dist/cli/codemod/namespace-functions/reverse.js +348 -0
  28. package/dist/cli/codemod/namespace-functions/reverse.js.map +1 -0
  29. package/dist/cli/codemod/namespace-functions/rewriter.d.ts +21 -2
  30. package/dist/cli/codemod/namespace-functions/rewriter.js +1 -1
  31. package/dist/cli/codemod/namespace-functions/rewriter.js.map +1 -1
  32. package/dist/cli/index.js +2 -0
  33. package/dist/cli/index.js.map +1 -1
  34. package/dist/linters/eslint.js +6 -1
  35. package/dist/linters/eslint.js.map +1 -1
  36. package/dist/linters/house/async-rules.d.ts +1 -1
  37. package/dist/linters/house/async-rules.js +3 -1
  38. package/dist/linters/house/async-rules.js.map +1 -1
  39. package/dist/linters/house/await-support.js +45 -38
  40. package/dist/linters/house/await-support.js.map +1 -1
  41. package/dist/linters/house/common.d.ts +43 -0
  42. package/dist/linters/house/common.js +43 -0
  43. package/dist/linters/house/common.js.map +1 -1
  44. package/dist/linters/house/const-class-values.rule.js +9 -8
  45. package/dist/linters/house/const-class-values.rule.js.map +1 -1
  46. package/dist/linters/house/hook-support.js +11 -7
  47. package/dist/linters/house/hook-support.js.map +1 -1
  48. package/dist/linters/house/index.d.ts +1 -0
  49. package/dist/linters/house/index.js +1 -0
  50. package/dist/linters/house/index.js.map +1 -1
  51. package/dist/linters/house/max-params-own.rule.js +12 -11
  52. package/dist/linters/house/max-params-own.rule.js.map +1 -1
  53. package/dist/linters/house/no-await-new-chain.rule.d.ts +37 -0
  54. package/dist/linters/house/no-await-new-chain.rule.js +179 -0
  55. package/dist/linters/house/no-await-new-chain.rule.js.map +1 -0
  56. package/dist/linters/house/no-await-promise-chain.rule.js +23 -22
  57. package/dist/linters/house/no-await-promise-chain.rule.js.map +1 -1
  58. package/dist/linters/house/no-inline-await.rule.js +4 -3
  59. package/dist/linters/house/no-inline-await.rule.js.map +1 -1
  60. package/dist/linters/house/no-leaked-render.rule.js +3 -3
  61. package/dist/linters/house/no-leaked-render.rule.js.map +1 -1
  62. package/dist/linters/house/no-new-error.rule.js +1 -1
  63. package/dist/linters/house/no-new-error.rule.js.map +1 -1
  64. package/dist/linters/house/no-return-await.rule.js +5 -4
  65. package/dist/linters/house/no-return-await.rule.js.map +1 -1
  66. package/dist/linters/house/no-silent-catch.rule.js +4 -3
  67. package/dist/linters/house/no-silent-catch.rule.js.map +1 -1
  68. package/dist/linters/house/plugin.js +2 -0
  69. package/dist/linters/house/plugin.js.map +1 -1
  70. package/dist/linters/house/promise-chain-support.js +25 -25
  71. package/dist/linters/house/promise-chain-support.js.map +1 -1
  72. package/dist/linters/oxlint.d.ts +6 -5
  73. package/dist/linters/oxlint.js +8 -3
  74. package/dist/linters/oxlint.js.map +1 -1
  75. package/dist/testing/repo-tmp.js +17 -10
  76. package/dist/testing/repo-tmp.js.map +1 -1
  77. package/package.json +1 -1
package/README.md CHANGED
@@ -9,7 +9,7 @@ it as a dev dependency in an application that wants the same rules.
9
9
  bun add -d @venizia/dev-configs oxlint oxlint-tsgolint eslint typescript
10
10
  ```
11
11
 
12
- `oxlint` (>=1.88.0), `oxlint-tsgolint` (>=7.0.2004), `eslint` (9 or 10),
12
+ `oxlint` (>=1.89.0), `oxlint-tsgolint` (>=7.0.2004), `eslint` (9 or 10),
13
13
  `typescript` (5 or 6) are optional peers. Install only the tools you use. Formatting is `bun fmt` (Bun 1.4.4 or newer), set in `bunfig.toml`: see [Formatting](#formatting). Keep the
14
14
  ESLint config `.mjs`: a TypeScript one (`.mts`) makes ESLint require `jiti`, one more dependency. A
15
15
  project that only wants the full ESLint preset installs `eslint` and skips the oxc tools.
@@ -95,19 +95,21 @@ Every IGNIS package and example does.
95
95
  | Flag | Base value | Why |
96
96
  | :--- | :--- | :--- |
97
97
  | `experimentalDecorators` | `true` | `@inject`, `@controller`, `@repository` and the other decorators need it |
98
- | `emitDecoratorMetadata` | `true` | Optional - restate it only if your code reads `design:*` metadata. IGNIS reads `design:paramtypes` once, to validate a `@repository` constructor, and skips the check when the metadata is absent. Under Bun it turns an interface-typed constructor parameter into a runtime import (`Export named 'X' not found`), so import such names with `import type`; `tsc --noEmit --isolatedModules` (TS1272) finds most of them, loading `src/index.ts` under Bun the rest |
98
+ | `emitDecoratorMetadata` | `true` | Optional - restate it only if your code reads `design:*` metadata. IGNIS reads `design:paramtypes` once, to validate a `@repository` constructor, and skips the check when the metadata is absent. Under Bun it turns an interface-typed constructor parameter into a runtime import (`Export named 'X' not found`), so import such names with `import type`; `bun check` (TS1272; the base tsconfig sets `isolatedModules`) finds most of them, loading `src/index.ts` under Bun the rest |
99
99
  | `useDefineForClassFields` | `false` | Class fields are assigned, not defined, so a subclass field initializer does not shadow a value the base constructor set |
100
100
 
101
101
  ## Entry points
102
102
 
103
103
  | Entry point | What it gives |
104
104
  | :--- | :--- |
105
- | `@venizia/dev-configs` | Everything below, re-exported |
105
+ | `@venizia/dev-configs` | `/compilers` and `/linters`, re-exported. Not `/checks` or `/testing` |
106
106
  | `@venizia/dev-configs/compilers` | `BunCompiler` |
107
107
  | `@venizia/dev-configs/testing` | `RejectionHelper` (`rejectionOf`, `expectRejection`), `SpawnHelper` (`spawnSyncBounded`), `RepoTmp` (`findRoot`, `apply`) - test helpers (imports `bun:test`; tests only) |
108
- | `@venizia/dev-configs/linters` | `oxlintConfigs`, `OxlintConfigs`, `BrowserOxlintConfigs`, `ReactOxlintConfigs`, `LintIgnore`, `namingConventionConfigs`, `reactNamingConventionConfigs`, `houseConfigs`, `reactHouseConfigs`, `eslintConfigs`, the rule classes and their types |
108
+ | `@venizia/dev-configs/testing/tmpdir-preload` | A bunfig test preload: a bare `bun test` keeps its temp folders in the repository (calls `RepoTmp.apply()`) |
109
+ | `@venizia/dev-configs/checks` | The engines behind `devz check <name>`: catalog, module cycles, purity, split report and the test-trimming checks. Bun-only tooling, never import it from browser code |
110
+ | `@venizia/dev-configs/linters` | `oxlintConfigs`, `OxlintConfigs`, `BrowserOxlintConfigs`, `ReactOxlintConfigs`, `LintIgnore`, `namingConventionConfigs`, `reactNamingConventionConfigs`, `houseConfigs`, `reactHouseConfigs`, `eslintConfigs`, `paddingConfigs`, the rule classes and their types |
109
111
  | `@venizia/dev-configs/linters/oxlint` | `oxlintConfigs`, `OxlintConfigs`, `IOxlintPresetOptions`, `BrowserOxlintConfigs`, `ReactOxlintConfigs`, `LintIgnore`, the rule classes and their types: everything an oxlint config needs, and nothing that loads ESLint. Loads in milliseconds: `/linters` also loads ESLint and its plugins, which an oxlint config never uses |
110
- | `@venizia/dev-configs/tsconfig.base.json` | Target and lib ES2025, `module` Node16, strict mode (`noImplicitAny` and `useUnknownInCatchVariables` on) with `strictPropertyInitialization` off (DI-injected properties have no initializer), `noEmitOnError`, tests excluded |
112
+ | `@venizia/dev-configs/tsconfig.base.json` | Target and lib ES2025, `module` esnext with `moduleResolution` bundler, strict mode (`noImplicitAny` and `useUnknownInCatchVariables` on) with `strictPropertyInitialization` off (DI-injected properties have no initializer), `noEmitOnError`, tests excluded |
111
113
  | `@venizia/dev-configs/tsconfig.common.json` | Extends the base and restates `module` as `esnext` and `moduleResolution` as `bundler` |
112
114
  | `@venizia/dev-configs/tsconfig.browser.json` | Extends the base for a browser library built with a bundler: `module` ESNext, `moduleResolution` bundler, lib ES2025 + `DOM` + `DOM.Iterable`, `types: []` so no Bun types reach `dist` |
113
115
  | `@venizia/dev-configs/tsconfig.react.json` | Extends `tsconfig.browser.json` and sets `jsx: react-jsx` |
@@ -123,7 +125,7 @@ Every IGNIS package and example does.
123
125
  becomes a runtime import when Bun runs a decorated class's source, and loading fails with
124
126
  `Export named 'X' not found`. `oxlint --fix` rewrites them.
125
127
 
126
- oxlint (1.88) does not read decorator metadata, so it also rewrites the import of a decorated
128
+ oxlint does not read decorator metadata, so it also rewrites the import of a decorated
127
129
  constructor parameter's class to `import { type X }`. tsc then emits `Function` (or `Object` under Bun)
128
130
  as that parameter's `design:paramtypes` entry. IGNIS never injects by that entry - `@inject` names its
129
131
  key, and `@repository` skips `Object` and `Function` - so nothing breaks. Code that does read
@@ -142,9 +144,10 @@ Not ported:
142
144
 
143
145
  #### lenientFallback
144
146
 
145
- `prefer-nullish-coalescing` flags `||` on any nullable left side, so `opts.name || 'guest'` fails when
146
- `name` is `string | undefined`. That is the default: `||` also swallows a real `''` or `0`. A project
147
- where `''` and `0` fall back on purpose opts out in one line:
147
+ `prefer-nullish-coalescing` flags `||` on a nullable left side, because `||` also swallows a real `0`
148
+ or `false`. `||` on a string is allowed in every preset: `opts.name?.trim() || 'guest'` is an
149
+ intentional empty-string fallback, and `??` would keep the `''`. A project where `0` falls back on
150
+ purpose too opts in with one line:
148
151
 
149
152
  ```ts
150
153
  // .configs/lints/oxlint.config.mts
@@ -160,8 +163,9 @@ booleans. `BrowserOxlintConfigs.create()` and `ReactOxlintConfigs.create()` take
160
163
 
161
164
  ### houseConfigs and the house rules
162
165
 
163
- `houseConfigs` is `namingConventionConfigs` plus the house rules oxlint cannot express and the four async style rules;
164
- `reactHouseConfigs` is the same over `reactNamingConventionConfigs`. The rules ship as the ESLint plugin
166
+ `houseConfigs` is `namingConventionConfigs` plus the house rules oxlint cannot express, the four async style rules
167
+ and the blank-line padding rules (`paddingConfigs`, below); `reactHouseConfigs` is the same over
168
+ `reactNamingConventionConfigs`, plus the React rules. The house rules ship as the ESLint plugin
165
169
  `houseEslintPlugin`, registered as `venizia`:
166
170
 
167
171
  | Class | Rule | Default | What it enforces |
@@ -176,10 +180,25 @@ booleans. `BrowserOxlintConfigs.create()` and `ReactOxlintConfigs.create()` take
176
180
  with `[ConstClassValuesRule.NAME]: ConstClassValuesRule.build({ severity: 'error' })`. The 5-parameter
177
181
  limit (V-C-02) is `venizia/max-params-own`, an error.
178
182
 
183
+ #### Blank-line padding
184
+
185
+ `paddingConfigs` holds two `@stylistic` rules, both `error`, on `.ts`, `.tsx`, `.mts` and `.cts` files.
186
+ `houseConfigs`, `reactHouseConfigs` and `eslintConfigs` carry it. It has no parser of its own: it rides on the
187
+ TypeScript parser of `namingConventionConfigs` or `eslintConfigs`. oxlint has none of these rules, so a
188
+ project that lints with oxlint alone gets no padding check. `devz lint --fix` writes the blank lines.
189
+
190
+ | Rule | What it enforces |
191
+ | :--- | :--- |
192
+ | `@stylistic/padding-line-between-statements` | A blank line after the imports (none needed between two imports), before a `return`, and around a block-like statement (a statement that ends in a block, such as `if`, `for`, `while`, `switch`, `try`, a function declaration or a bare block). Stacked `case` and `default` labels stay together |
193
+ | `@stylistic/lines-between-class-members` | A blank line between class members, except after a one-line member, so a run of one-line properties stays together |
194
+
195
+ Turn one off after the preset with `'off'`. See the
196
+ [changelog](https://ignis.venizia.ai/changelogs/2026-11-04-blank-line-padding-rules).
197
+
179
198
  ### namingConventionConfigs
180
199
 
181
200
  `namingConventionConfigs` (type `Linter.Config[]`) sets only `@typescript-eslint/naming-convention`, with
182
- its 15 selectors. It targets `.ts`, `.tsx`, `.mts` and `.cts`, and ignores `dist`, `build`,
201
+ its 16 selectors. It targets `.ts`, `.tsx`, `.mts` and `.cts`, and ignores `dist`, `build`,
183
202
  `coverage`, `*.d.ts` and plain JavaScript. ESLint does not report unused disable comments in this
184
203
  config, because oxlint owns the other rules.
185
204
 
@@ -239,9 +258,8 @@ flavor = "oxfmt"
239
258
 
240
259
  ### eslintConfigs
241
260
 
242
- `eslintConfigs` keeps its shape and resolves to the same rules as before, but is now owned here instead
243
- of wrapping `@minimaltech/eslint-node`: ESLint recommended, typescript-eslint, naming
244
- conventions, `curly`, plus these IGNIS rules (the node-protocol check runs in `oxlintConfigs` only):
261
+ `eslintConfigs` is the full ESLint preset: ESLint recommended, typescript-eslint, naming
262
+ conventions, `curly`, the padding rules, plus these IGNIS rules (the node-protocol check runs in `oxlintConfigs` only):
245
263
 
246
264
  | Rule | Setting |
247
265
  | :--- | :--- |
@@ -289,7 +307,13 @@ table above, as strict as the base. `react/no-deprecated` is left out: oxlint ha
289
307
  Both React presets run the same fifteen `jsx-a11y` rules, including the six that need a human
290
308
  decision (`click-events-have-key-events`, `no-static-element-interactions`,
291
309
  `no-noninteractive-element-interactions`, `label-has-associated-control`, `heading-has-content`,
292
- `anchor-is-valid`). `reactHouseConfigs` adds `venizia/no-leaked-render`, which oxlint has no port of.
310
+ `anchor-is-valid`). `reactHouseConfigs` adds three house rules oxlint has no port of:
311
+
312
+ | Rule | What it enforces |
313
+ | :--- | :--- |
314
+ | `venizia/no-leaked-render` | See the table above. On JSX files |
315
+ | `venizia/no-async-hook-callback` | A hook never gets an async function. On all source files |
316
+ | `venizia/effect-cleanup-consistency` | An effect callback returns a cleanup on every path or on none. On all source files |
293
317
 
294
318
  The presets start strict. An application that wants less overrides the rule after the preset:
295
319
 
@@ -360,6 +384,31 @@ await BunCompiler.compile({
360
384
  });
361
385
  ```
362
386
 
387
+ ## The devz command
388
+
389
+ The package installs a `devz` binary. Run `devz --help` for the list, and `devz clean --help`,
390
+ `devz check --help` or `devz codemod --help` for the options of one command. A usage error in a command exits 2.
391
+
392
+ | Command | What it does |
393
+ | :--- | :--- |
394
+ | `devz lint [--fix] [files]` | Runs oxlint, ESLint and `bun fmt` from `.configs/lints/` and `.configs/formatters/.ignore`, and stops at the first tool that fails. With no file it checks the project; with files it handles only those, as a pre-commit hook passes them. `--fix` writes |
395
+ | `devz check purity --claims <file> [package] [--json]` | Probes every entry claimed browser-pure. Needs a build |
396
+ | `devz check module-cycles <dir> [--max <n>]` | Lists the import cycles of a built ESM folder; exits 1 when there are more than `--max` |
397
+ | `devz check split-report [--dist <dir>] [folder...]` | Reports hub files, stray types, missing barrels, long files and cycles. Never a gate |
398
+ | `devz check catalog [--glob <pattern>]... [--pinned <file>]... [--preset-prefix <prefix>]` | Guards dependency ranges against the root `workspaces.catalog` |
399
+ | `devz clean` | Removes `dist`, `node_modules/.cache` and the `*.tsbuildinfo` files next to the tsconfig. It takes no argument |
400
+ | `devz codemod <name> [paths...]` | Rewrites source files. A dry run unless `--write`; `--check` exits 1 while a rewrite remains |
401
+
402
+ `devz check` also runs the four tools of the test-trimming method: `test-weight`, `test-dead-code`,
403
+ `test-mutate` and `test-controls`.
404
+
405
+ The codemods are `drop-redundant-casts` (removes `as X` casts the compiler no longer needs),
406
+ `const-classes` (turns a string-literal union into a const class), `async-style` (applies the async style
407
+ fixers and lists the rest), `namespace-functions` (moves calls of a function that moved into a class to the
408
+ class form), `connector-imports` (moves `@venizia/ignis/<connector sub-path>` imports to
409
+ `@venizia/ignis-connectors`) and `env-get` (strips the type arguments of `applicationEnvironment.get()`
410
+ for the string-reading `get()`; the receiver is a name the call's scope resolves to an import of `applicationEnvironment` or `AppEnvs` from the store module, or a const initialised from one; every other `get<...>(key)` call is listed as skipped, and a call it cannot place as manual, with its file and line) and `any-aliases` (replaces the removed `AnyType` and `AnyObject` aliases by what they stood for, `any` and `Record<string | symbol | number, any>`, so no type changes, and drops them from the imports; `--strict` writes `unknown` and `Record<string, unknown>` instead; it reads imports from `@venizia/ignis`, `-helpers`, `-inversion`, and from `@venizia/ardor` and `-kernel`, which re-exported them).
411
+
363
412
  ## Where it sits
364
413
 
365
414
  The root of the chain, with no IGNIS dependency: **dev-configs** -> inversion -> {filter, helpers}
@@ -0,0 +1,35 @@
1
+ export interface IAnyAliasesResult {
2
+ output: string;
3
+ changed: boolean;
4
+ /** How many type references were rewritten. */
5
+ rewritten: number;
6
+ /** What the codemod cannot place: file line (1-based) and why. */
7
+ manual: Array<{
8
+ line: number;
9
+ reason: string;
10
+ }>;
11
+ /** Same-named types that are not the IGNIS aliases: file line (1-based) and the name. */
12
+ local: Array<{
13
+ line: number;
14
+ name: string;
15
+ }>;
16
+ }
17
+ /** Replaces the deleted `AnyType` and `AnyObject` aliases by what they stood for (`any`), or with `isStrict` by the tighter types. */
18
+ export declare class AnyAliases {
19
+ static rewrite(opts: {
20
+ typescript: typeof import('typescript');
21
+ fileName: string;
22
+ source: string;
23
+ /** Write `unknown` and `Record<string, unknown>` instead of `any`. */
24
+ isStrict?: boolean;
25
+ }): IAnyAliasesResult;
26
+ }
27
+ /** `devz codemod any-aliases`: reads the sources, prints what changes, writes with `--write`. */
28
+ export declare class AnyAliasesCommand {
29
+ static readonly USAGE = "Usage: devz codemod any-aliases [paths...] [--strict] [--write [--all] | --check]\n\nReplaces the AnyType and AnyObject aliases the @venizia/ignis-helpers and @venizia/ignis-inversion\nreleases deleted, by what they stood for, so a bump changes no type in your code:\n\n AnyType becomes any\n AnyObject becomes Record<string | symbol | number, any>\n\nin every file that imports them from @venizia/ignis, @venizia/ignis-helpers, @venizia/ignis-inversion,\n@venizia/ardor or @venizia/ardor-kernel (ARDOR re-exported the same two names; a sub-path such as\n@venizia/ignis-helpers/common too), whatever local name the import gives them\n(import { AnyType as Loose } ...). The names leave the import, and an import left empty is dropped.\n\nWith --strict it writes the tighter types instead of the default ones, for code that wants to stop using any:\n\n AnyType becomes unknown\n AnyObject becomes Record<string, unknown>\n\n--strict surfaces errors that any hid: an unknown value cannot be read, or passed as a narrower type, without a\ncheck; an interface-typed value is not assignable to Record<string, unknown> (an interface has no implicit\nindex signature); and a symbol key on a former AnyObject fails (TS2538). Declare the shape as a type\nalias, spread the value, or narrow it; run your typecheck after it.\n--strict acts only on the alias names: a file already rewritten to any is left alone, so run it instead of\nthe default run, on a path at a time, and tighten the rest by hand.\n\nIt lists, and leaves alone:\n manual a re-export (export { AnyType }, export type { AnyObject } from ...), an import(\"...\").AnyType\n type, and AnyType in a heritage clause (extends any and extends unknown are not valid)\n local a same-named type the file declares (in any scope: a namespace, a function, a block, a type\n parameter) or imports from somewhere else; a use that such a declaration shadows is left alone\n\nA name used in a heritage clause keeps its import, and so keeps all its other uses in that file: once you\nreplace the heritage use by hand, run the codemod again and the other uses are rewritten.\n\nIt reads TypeScript files (.ts, .tsx, .mts, .cts) and is idempotent: a second run changes nothing.\n\n --strict write unknown and Record<string, unknown> instead of any\n --write write the changed files (without it, nothing is written); it needs a path, or --all\n --all with --write and no path: rewrite every source file under the working directory\n --check dry run that exits 1 while a file would change or a manual case is left (for CI)\n --help print this text and exit\n\nWith no flag it lists what would change and writes nothing. Inside a git repository it reads the files\ngit knows, and --write refuses a file with local changes: commit or stash it first, so git can undo it.\nThere is no --reverse: a downgrade restores the files from git.";
30
+ static run(opts: {
31
+ root: string;
32
+ args: string[];
33
+ }): Promise<number>;
34
+ }
35
+ //# sourceMappingURL=any-aliases.d.ts.map