morghulis 4.3.0 → 4.3.3

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.
@@ -1,11 +1,11 @@
1
1
  import type { App } from "vue";
2
- import './style.css';
3
2
  import type { MOptions } from "./library/store-options/types.ts";
4
3
  import './global-components';
5
4
  declare const createMorghulis: (options?: MOptions) => {
6
5
  install(Vue: App): void;
7
6
  };
8
7
  export { createMorghulis };
8
+ export default createMorghulis;
9
9
  export * from './library';
10
10
  export * from './contents';
11
11
  export * from './components';
@@ -0,0 +1 @@
1
+ export declare function createFileUrl(baseUrl: string, path: string | null | undefined): string;
@@ -0,0 +1 @@
1
+ export declare function createSocketUrl(baseUrl: string, client: string, pageUrl: string): string;
@@ -0,0 +1 @@
1
+ export {}
package/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "4.3.0",
3
+ "version": "4.3.3",
4
4
  "description": "TypeScript and Vue 3 components for data management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
8
8
  "types": "./dist/types/index.d.ts",
9
- "files": ["dist"],
10
- "sideEffects": ["**/*.css"],
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "sideEffects": [
13
+ "**/*.css"
14
+ ],
11
15
  "exports": {
12
16
  ".": {
13
17
  "types": "./dist/types/index.d.ts",
@@ -17,8 +21,14 @@
17
21
  "./types": {
18
22
  "types": "./dist/types/types.d.ts"
19
23
  },
20
- "./style": "./dist/style.css",
21
- "./style.css": "./dist/style.css"
24
+ "./style": {
25
+ "types": "./dist/types/style.d.ts",
26
+ "default": "./dist/style.css"
27
+ },
28
+ "./style.css": {
29
+ "types": "./dist/types/style.d.ts",
30
+ "default": "./dist/style.css"
31
+ }
22
32
  },
23
33
  "publishConfig": {
24
34
  "access": "public",
@@ -33,8 +43,9 @@
33
43
  "preview": "vite preview",
34
44
  "prebuild-only": "npm run generate:components",
35
45
  "build-only": "vite build",
36
- "build:lib": "npm run generate:components && vite build --config vite.lib.config.ts && vue-tsc -p tsconfig.lib.json",
37
- "prepack": "npm run build:lib",
46
+ "build:lib": "npm run generate:components && vite build --config vite.lib.config.ts && vue-tsc -p tsconfig.lib.json && node scripts/finalize-types.mjs",
47
+ "test:package": "npm run build:lib && node --test tests/package-exports.test.mjs tests/socket-url.test.mjs tests/file-url.test.mjs",
48
+ "prepack": "npm run test:package",
38
49
  "pretype-check": "npm run generate:components",
39
50
  "type-check": "vue-tsc --build"
40
51
  },