@nova-design-system/nova-react 3.0.0-beta.40 → 3.0.0-beta.41

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.
Files changed (1) hide show
  1. package/package.json +14 -5
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@nova-design-system/nova-react",
3
- "version": "3.0.0-beta.40",
3
+ "version": "3.0.0-beta.41",
4
4
  "description": "Nova is a design system created by Elia Group to empower creators to efficiently build solutions that people love to use.",
5
5
  "author": "Elia Group",
6
6
  "homepage": "https://nova.eliagroup.io",
7
7
  "license": "SEE LICENSE IN LICENSE.MD",
8
- "main": "dist/index.js",
8
+ "main": "dist/cjs/index.js",
9
9
  "module": "dist/index.js",
10
10
  "types": "dist/types/index.d.ts",
11
11
  "directories": {
@@ -15,13 +15,19 @@
15
15
  "files": [
16
16
  "dist"
17
17
  ],
18
+ "exports": {
19
+ "import": "./dist/index.js",
20
+ "require": "./dist/cjs/index.js",
21
+ "types": "./dist/types/index.d.ts"
22
+ },
18
23
  "publishConfig": {
19
24
  "registry": "https://registry.npmjs.org/",
20
25
  "access": "public"
21
26
  },
22
27
  "scripts": {
23
- "build": "npm run tsc",
24
- "tsc": "tsc -p . --outDir ./dist",
28
+ "build": "npm run build:cjs && npm run tsc",
29
+ "build:cjs": "rollup -c",
30
+ "tsc": "tsc -p . --outDir ./dist --declarationDir ./dist/types --declaration true",
25
31
  "storybook": "storybook dev -p 6006",
26
32
  "storybook.build": "storybook build -o ../../storybook-static/react",
27
33
  "clean": "rimraf dist lib/generated lib/stories",
@@ -32,7 +38,10 @@
32
38
  "react-dom": "^18.3.1",
33
39
  "nova-utils": "*",
34
40
  "nova-storybook-utils": "*",
35
- "@nova-design-system/nova-webcomponents": "*"
41
+ "@nova-design-system/nova-webcomponents": "*",
42
+ "@rollup/plugin-commonjs": "28.0.2",
43
+ "@rollup/plugin-node-resolve": "16.0.0",
44
+ "@rollup/plugin-typescript": "12.1.2"
36
45
  },
37
46
  "peerDependencies": {
38
47
  "@stencil/react-output-target": "0.8.1"