@makehq/forman-schema 0.1.1 → 0.1.2

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.
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@makehq/forman-schema",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Foman Schema Tools",
5
5
  "license": "MIT",
6
6
  "author": "Make",
7
7
  "repository": "github:integromat/forman-schema",
8
8
  "homepage": "https://www.make.com",
9
9
  "type": "module",
10
- "main": "./dist/cjs/index.js",
11
- "module": "./dist/esm/index.js",
12
- "types": "./dist/esm/index.d.ts",
10
+ "main": "./dist/index.cjs",
11
+ "module": "./dist/index.mjs",
12
+ "types": "./dist/index.d.ts",
13
13
  "exports": {
14
14
  ".": {
15
- "import": "./dist/esm/index.js",
16
- "require": "./dist/cjs/index.js",
17
- "types": "./dist/esm/index.d.ts"
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.cjs",
17
+ "types": "./dist/index.d.ts"
18
18
  }
19
19
  },
20
20
  "engines": {
@@ -26,8 +26,8 @@
26
26
  "scripts": {
27
27
  "test": "jest --runInBand --forceExit --verbose false",
28
28
  "build": "npm run build:esm && npm run build:cjs",
29
- "build:esm": "tsc -p tsconfig.esm.json",
30
- "build:cjs": "tsc -p tsconfig.cjs.json",
29
+ "build:esm": "tsc -p tsconfig.esm.json && mv ./dist/index.js ./dist/index.mjs",
30
+ "build:cjs": "tsc -p tsconfig.cjs.json && mv ./dist/index.js ./dist/index.cjs",
31
31
  "format": "npx prettier . --write"
32
32
  },
33
33
  "devDependencies": {
@@ -1,22 +0,0 @@
1
- export type FormanSchemaField = {
2
- name?: string;
3
- type: string;
4
- required?: boolean;
5
- default?: string | number | boolean | null;
6
- options?: {
7
- value: string;
8
- }[];
9
- help?: string;
10
- spec?: FormanSchemaField[] | FormanSchemaField;
11
- };
12
- export type JSONSchemaField = {
13
- type: string;
14
- description?: string;
15
- default?: string | number | boolean | null;
16
- enum?: string[];
17
- properties?: Record<string, JSONSchemaField>;
18
- items?: JSONSchemaField;
19
- required?: string[];
20
- };
21
- export declare function toJSONSchema(field: FormanSchemaField): JSONSchemaField;
22
- export declare function toFormanSchema(field: JSONSchemaField): FormanSchemaField;
File without changes
File without changes
File without changes