@beabee/beabee-common 0.20.0-alpha.1 → 0.20.0-alpha.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.
@@ -0,0 +1 @@
1
+ export * from "./index.ts";
@@ -5,7 +5,7 @@ export interface CalloutComponentBaseInputSelectableSchema extends CalloutCompon
5
5
  values: {
6
6
  label: string;
7
7
  value: string;
8
- nextSlideId: string;
8
+ nextSlideId?: string;
9
9
  }[];
10
10
  validate?: CalloutComponentBaseRules;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beabee/beabee-common",
3
- "version": "0.20.0-alpha.1",
3
+ "version": "0.20.0-alpha.3",
4
4
  "description": "Shared code between Beabee projects for Node.js, Deno and the browser",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.cjs",
@@ -11,9 +11,14 @@
11
11
  ],
12
12
  "exports": {
13
13
  ".": {
14
- "import": "./dist/esm/index.js",
15
- "require": "./dist/cjs/index.cjs",
16
- "types": "./dist/types/index.d.ts"
14
+ "import": {
15
+ "types": "./dist/types/index.d.ts",
16
+ "default": "./dist/esm/index.js"
17
+ },
18
+ "require": {
19
+ "types": "./dist/types/index.d.cts",
20
+ "default": "./dist/cjs/index.cjs"
21
+ }
17
22
  },
18
23
  "./package.json": "./package.json"
19
24
  },
@@ -31,7 +36,7 @@
31
36
  "build:node": "deno task build:node",
32
37
  "build:node:esm": "deno task build:node:esm",
33
38
  "build:node:cjs": "deno task build:node:cjs",
34
- "build:types": "tsc",
39
+ "build:types": "tsc && echo 'export * from \"./index.ts\";' > dist/types/index.d.cts",
35
40
  "generate:index": "deno task generate:index",
36
41
  "sync": "deno task sync",
37
42
  "prepublishOnly": "npm run build"