Repository navigation
sql-storage-adapter v0.6.13
·
389 commits
to master
since this release
Fixed
- The declaration files name the files they import. tsc copies relative specifiers as the source writes them, and the build gave them their extensions in the JavaScript files only, so
dist/index.d.tscarriedexport * from './types'. Under--moduleResolution node16ornodenext, TypeScript reads the package's declarations as ES modules, where a relative specifier resolves only when it names its file, so a consumer on those settings saw none of the package's exports (error TS2305: Module '"@framers/sql-storage-adapter"' has no exported member 'createPostgresAdapter'). The build now gives every relative specifier in the declarations the.jsfile or/index.jsfolder index it names, as it does in the JavaScript. Consumers onbundlerornode10resolution read the same declarations as before.
Changed
- CI packs the package, installs the tarball into a new ES module project and type-checks a consumer of
createDatabase,resolveStorageAdapter,createPostgresAdapterandStorageAdapterwith--module nodenext --moduleResolution nodenext --strict.