@flodesk/grain 1.0.1 → 1.0.4

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,5 @@
1
+ import React from "react";
2
+ export var AnotherTestComponent = function AnotherTestComponent(_ref) {
3
+ var children = _ref.children;
4
+ return /*#__PURE__*/React.createElement("h1", null, children);
5
+ };
@@ -1,2 +1,2 @@
1
1
  export { TestComponent } from "./test-component";
2
- export { AnotherTestComponent } from "./another-test-component";
2
+ export { AnotherTestComponent } from "./another-test-component";
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ export var TestComponent = function TestComponent(_ref) {
3
+ var children = _ref.children;
4
+ return /*#__PURE__*/React.createElement("button", null, children);
5
+ };
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./components";
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@flodesk/grain",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "Flodesk design system",
5
- "module": "src/index.js",
6
- "main": "src/index.js",
5
+ "module": "es/index.js",
7
6
  "author": "Flodesk",
8
7
  "license": "UNLICENSED",
9
8
  "scripts": {
@@ -12,27 +11,38 @@
12
11
  "build": "next build",
13
12
  "start": "next start",
14
13
  "lint": "next lint",
15
- "semantic-release": "semantic-release"
14
+ "semantic-release": "semantic-release",
15
+ "build:es": "del es/* && cross-env NODE_ENV=production babel --config-file ./babel.config.es.js --out-dir es --copy-files src"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
20
  "files": [
21
- "src"
21
+ "es"
22
22
  ],
23
23
  "dependencies": {
24
- "react": "18.1.0",
25
- "react-dom": "18.1.0"
24
+ "core-js": "^3.22.8"
25
+ },
26
+ "peerDependencies": {
27
+ "react": ">=16.8",
28
+ "react-dom": ">=16.8"
26
29
  },
27
30
  "devDependencies": {
31
+ "@babel/cli": "^7.17.10",
32
+ "@babel/plugin-transform-runtime": "^7.18.2",
33
+ "@babel/preset-env": "^7.18.2",
34
+ "@babel/preset-react": "^7.17.12",
28
35
  "@mdx-js/loader": "^2.1.1",
29
36
  "@next/mdx": "^12.1.6",
30
- "next": "12.1.6",
31
37
  "@semantic-release/git": "^10.0.1",
32
38
  "@semantic-release/gitlab": "^9.3.1",
33
39
  "@semantic-release/npm": "^9.0.1",
40
+ "cross-env": "^7.0.3",
41
+ "del-cli": "^4.0.1",
34
42
  "eslint": "8.16.0",
35
43
  "eslint-config-next": "12.1.6",
44
+ "next": "12.1.6",
45
+ "react-live": "^3.1.0",
36
46
  "semantic-release": "^19.0.2"
37
47
  }
38
48
  }
@@ -1,5 +0,0 @@
1
- import React from "react"
2
-
3
- export const AnotherTestComponent = ({ children }) => (
4
- <h1>{children}</h1>
5
- )
@@ -1,5 +0,0 @@
1
- import React from "react"
2
-
3
- export const TestComponent = ({ children }) => (
4
- <button>{children}</button>
5
- )
package/src/index.js DELETED
@@ -1 +0,0 @@
1
- export * from "/components";