@gcforms/types 0.0.6 → 0.0.7

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,2 @@
1
+ export { FormElementTypes, type dynamicRowType, type FormElement, type Group, type ElementProperties, type PropertyChoices, type BrandProperties, type DeliveryOption, type ConditionalRule, type FormRecord, type SecurityAttribute, type FormPurpose, type PublicFormRecord, type ValidationProperties, type FormProperties, type AddressComponents, type ClosedDetails, } from "./form-types.js";
2
+ export type { Response, Responses, FileInputResponse } from "./form-response-types.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcforms/types",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "author": "Canadian Digital Service",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -9,16 +9,20 @@
9
9
  "type": "module",
10
10
  "main": "./dist/cjs/index.js",
11
11
  "module": "./dist/esm/index.js",
12
+ "types": "./dist/types/index.d.ts",
12
13
  "exports": {
13
14
  ".": {
14
- "require": {
15
- "default": "./dist/cjs/index.js",
16
- "types": "./dist/types/cjs/index.d.ts"
17
- },
18
- "import": {
19
- "default": "./dist/esm/index.js",
20
- "types": "./dist/types/esm/index.d.ts"
21
- }
15
+ "import": "./dist/esm/index.js",
16
+ "require": "./dist/cjs/index.js",
17
+ "types": "./dist/types/index.d.ts"
18
+ },
19
+ "./cjs": {
20
+ "require": "./dist/cjs/index.js",
21
+ "types": "./dist/types/cjs/index.d.ts"
22
+ },
23
+ "./esm": {
24
+ "import": "./dist/esm/index.js",
25
+ "types": "./dist/types/esm/index.d.ts"
22
26
  }
23
27
  },
24
28
  "files": [
@@ -28,7 +32,7 @@
28
32
  "scripts": {
29
33
  "build:cjs": "tsc -p tsconfig.cjs.json",
30
34
  "build:esm": "tsc -p tsconfig.esm.json",
31
- "build": "rm -rf dist && yarn build:cjs && yarn build:esm",
35
+ "build": "rm -rf dist && yarn build:cjs && yarn build:esm && node copy-types.mjs",
32
36
  "prepare": "yarn build"
33
37
  },
34
38
  "dependencies": {