Repository navigation
Releases: losol/origo
Release list
@eventuras/vite-config@0.5.0
Minor Changes
-
af8bfca: Emit type declarations from the presets again, with the TypeScript compiler the package already has.
0.4.0 dropped
vite-plugin-dts, because it needs the JavaScript Compiler API that TypeScript 7 no longer ships, and asked every consumer to addtsc --emitDeclarationOnlyto its build script. That moved four things onto each consumer: whereoutDirresolves, keeping test files out of the emit, path aliases thattscleaves as@/…, and types that stop updating in watch mode.The presets now run the consumer's own
tscas a command (so TypeScript 6 and 7 both work) after the Vite build, and:- put the declarations in Vite's
outDir, laid out from the library's entry root, next to the JavaScript; - always leave out
*.test.*,*.spec.*,*.stories.*,__tests__and__mocks__, on top of the tsconfig's ownexclude; - rewrite path aliases from
resolve.alias(such as the@/alias the React preset sets) to relative imports in the emitted.d.ts; - re-emit on every rebuild under
vite build --watch; - fail the build when
tscreports errors.
Migrating from 0.4: remove
&& tsc --emitDeclarationOnlyfrom the package's build script (and atsconfig.build.jsonthat only existed to exclude tests).vite buildis enough again. Keeptypescriptas a devDependency: it is what emits the declarations, and is now declared as an optional peer (>=5.5).New option:
dtson every preset,trueby default.dts: falseskips the emit;{ tsconfig, entryRoot, include, exclude }tunes it. The plugin is also exported on its own from@eventuras/vite-config/dts, for configs that do not use a preset. - put the declarations in Vite's
@eventuras/logger@0.9.2
Patch Changes
- 7e6dff1: Errors logged under
errorkeep their message and stack. Pino serialized an Error only undererr, sologger.error(err)andlogger.error({ error })wrote"error":{}; the Pino transport now serializeserrorthe same way.
@eventuras/typescript-config@1.1.1
Patch Changes
-
c9b0d3d: Resolve
includeandexcludeagainst the consuming package (${configDir}/…), as 1.1.0 did foroutDir.Relative paths in an extended config resolve next to the file that declares them, so the shared
src/**/*include pointed into this package, and a consumer without its ownincludefailed withTS18003: No inputs were found. The test and story excludes inbase.jsonhad the same problem and never applied to consumers.
@eventuras/eslint-config@1.0.6
Patch Changes
-
18da6e4: Update dependencies:
typescript: (none) →npm:@typescript/typescript6@^6.0.2
-
d1b1173: Keep linting working in projects on TypeScript 7.
typescript-eslint 8 needs the TypeScript JavaScript Compiler API and refuses to load
when it finds TypeScript 7, which no longer ships it. The config now depends on
@typescript/typescript6under the nametypescript, so typescript-eslint resolves the
TypeScript 6 API from here regardless of the TypeScript version the project compiles with.
@eventuras/vite-config@0.4.0
Minor Changes
-
7f9e1d6: Stop emitting type declarations from the presets, so consumers can move to TypeScript 7.
defineVanillaLibConfiganddefineReactLibConfig(anddefineNextLibConfigthrough it)
always addedvite-plugin-dts, which needs the TypeScript JavaScript Compiler API.
TypeScript 7 no longer ships it, so every consumer that emits declarations failed to
build on the upgrade (#19).The presets now build JavaScript only, and
vite-plugin-dtsis no longer a dependency.
Emit declarations with the compiler the package already has, after the Vite build:"build": "vite build && tsc --emitDeclarationOnly"
This works on TypeScript 6 and 7. Consumers carrying
@typescript/typescript6as a
workaround can drop it.Breaking: the
dtsoption (entryRoot,outDir,rollupTypes) is removed from
ReactLibConfigandNextLibConfig.tscdoes not rewrite@/…path aliases in emitted
declarations; use relative imports in anything reachable from a public export.
@eventuras/typescript-config@1.1.0
Minor Changes
-
7f9e1d6: Resolve
outDirinlibrary.json,react-library.jsonandnode.jsonagainst the
consuming package (${configDir}/dist) instead of this package's own directory.A relative
outDirin an extended config resolves next to the file that declares it,
sotscin a consuming package wrote intonode_modules/@eventuras/typescript-config/dist
unless the package setoutDiritself. Requires TypeScript 5.5 or later.
@eventuras/logger@0.9.1
Patch Changes
- 7f9e1d6: Emit type declarations with
tscinstead ofvite-plugin-dts. The declarations now keep
JSDoc comments andimport type;@eventuras/coreno longer ships an unreferenced
useragents/patterns.json.d.ts.
@eventuras/core@0.4.1
Patch Changes
- 7f9e1d6: Emit type declarations with
tscinstead ofvite-plugin-dts. The declarations now keep
JSDoc comments andimport type;@eventuras/coreno longer ships an unreferenced
useragents/patterns.json.d.ts.
@eventuras/core-nextjs@0.1.4
Patch Changes
- 7f9e1d6: Emit type declarations with
tscinstead ofvite-plugin-dts. The declarations now keep
JSDoc comments andimport type;@eventuras/coreno longer ships an unreferenced
useragents/patterns.json.d.ts.
@eventuras/app-config@0.1.5
Patch Changes
- 7f9e1d6: Emit type declarations with
tscinstead ofvite-plugin-dts. The declarations now keep
JSDoc comments andimport type;@eventuras/coreno longer ships an unreferenced
useragents/patterns.json.d.ts.