@vulcanjs/react-ui 0.4.11 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,26 +1,37 @@
1
1
  {
2
2
  "name": "@vulcanjs/react-ui",
3
- "version": "0.4.11",
3
+ "version": "0.5.3",
4
4
  "description": "Vulcan UI components for React",
5
5
  "main": "./dist/index.js",
6
6
  "files": [
7
7
  "dist/"
8
8
  ],
9
+ "exports": {
10
+ ".": {
11
+ "node": "./dist/index.js",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "types": "./dist/index.d.ts",
9
16
  "scripts": {
10
17
  "test": "echo \"Error: no test specified\" && exit 1",
11
- "build": "webpack --config ./webpack.config.js"
18
+ "build": " yarn run build:webpack # yarn run build:esm && yarn run build:types # && yarn run build:cjs",
19
+ "build:esm": "# TODO: not working, as it replaces import by 'require' in jsx # esbuild index.ts --outdir=dist --sourcemap --bundle --minify --platform=neutral --out-extension:.js=.mjs --main-fields=module,main,browser --external:tty --external:graphql --external:react --external:react-dom",
20
+ "build:cjs": "# TODO: not working as expected # esbuild index.ts --outdir=dist --sourcemap --bundle --minify --platform=node --out-extension:.js=.cjs --external:tty --external:graphql --external:react --external:react-dom",
21
+ "build:webpack": "webpack --config ./webpack.config.js",
22
+ "build:types": "tsc --emitDeclarationOnly --declaration --project tsconfig.build.json"
12
23
  },
13
24
  "author": "",
14
25
  "license": "MIT",
15
26
  "dependencies": {
16
- "@vulcanjs/core": "^0.4.6",
17
- "@vulcanjs/graphql": "^0.4.11",
18
- "@vulcanjs/i18n": "^0.4.10",
19
- "@vulcanjs/model": "^0.4.6",
20
- "@vulcanjs/permissions": "^0.4.6",
21
- "@vulcanjs/react-hooks": "^0.4.11",
22
- "@vulcanjs/schema": "^0.4.6",
23
- "@vulcanjs/utils": "^0.4.6",
27
+ "@vulcanjs/core": "^0.5.3",
28
+ "@vulcanjs/graphql": "^0.5.3",
29
+ "@vulcanjs/i18n": "^0.5.3",
30
+ "@vulcanjs/model": "^0.5.3",
31
+ "@vulcanjs/permissions": "^0.5.3",
32
+ "@vulcanjs/react-hooks": "^0.5.3",
33
+ "@vulcanjs/schema": "^0.5.3",
34
+ "@vulcanjs/utils": "^0.5.3",
24
35
  "classnames": "^2.3.1",
25
36
  "debug": "^4.3.1",
26
37
  "lodash": "^4.17.21",
@@ -40,5 +51,5 @@
40
51
  "@types/underscore": "^1.11.1",
41
52
  "graphql": "^15.5.0"
42
53
  },
43
- "gitHead": "1c0e721da1d32d2ad380b23e4e52e17a873337e2"
54
+ "gitHead": "ceba44d0e902c57184a5d7f7773b13e7f785b348"
44
55
  }