mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-23 20:40:34 +03:00
fix: proper module resolution in all cases (Node CJS, Node ESM, bundler)
* Add extensions to all imports * Set module resolution to `bundler` to avoid Node specific behavior * Use `ts2mjs` to rename files to `mjs` * Add extensions to `@bbob/types` imports * Fix `package.json` for proper ESM extension and type separation * More module resolution stuff change (`node16` for everything, `node` for Vue 2 plugin) * Use `ts-jest-resolver` for `js` -> `ts` resolving in Jest * Add changeset * Add import extensions to frontend libs
This commit is contained in:
@@ -17,16 +17,21 @@
|
||||
"@bbob/html": "*"
|
||||
},
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
"jsnext:main": "es/index.js",
|
||||
"module": "es/index.mjs",
|
||||
"jsnext:main": "es/index.mjs",
|
||||
"browser": "dist/index.js",
|
||||
"browserName": "BbobPresetHTML5",
|
||||
"types": "types/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./types/index.d.ts",
|
||||
"import": "./es/index.js",
|
||||
"require": "./lib/index.js",
|
||||
"import": {
|
||||
"types": "./types/index.d.mts",
|
||||
"default": "./es/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./types/index.d.ts",
|
||||
"default": "./lib/index.js"
|
||||
},
|
||||
"browser": "./dist/index.min.js",
|
||||
"umd": "./dist/index.min.js"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable indent */
|
||||
import { createPreset } from "@bbob/preset";
|
||||
import defaultTags from "./defaultTags";
|
||||
import defaultTags from "./defaultTags.js";
|
||||
export type * from "@bbob/preset";
|
||||
|
||||
export default createPreset(defaultTags);
|
||||
|
||||
Reference in New Issue
Block a user