diff options
Diffstat (limited to 'examples/with-npm/packages/ui')
| -rw-r--r-- | examples/with-npm/packages/ui/Button.tsx | 5 | ||||
| -rw-r--r-- | examples/with-npm/packages/ui/index.tsx | 2 | ||||
| -rw-r--r-- | examples/with-npm/packages/ui/package.json | 19 | ||||
| -rw-r--r-- | examples/with-npm/packages/ui/tsconfig.json | 5 |
4 files changed, 31 insertions, 0 deletions
diff --git a/examples/with-npm/packages/ui/Button.tsx b/examples/with-npm/packages/ui/Button.tsx new file mode 100644 index 0000000..3e5afc7 --- /dev/null +++ b/examples/with-npm/packages/ui/Button.tsx @@ -0,0 +1,5 @@ +import * as React from "react"; + +export const Button = () => { + return <button>Boop</button>; +}; diff --git a/examples/with-npm/packages/ui/index.tsx b/examples/with-npm/packages/ui/index.tsx new file mode 100644 index 0000000..916730e --- /dev/null +++ b/examples/with-npm/packages/ui/index.tsx @@ -0,0 +1,2 @@ +import * as React from "react"; +export * from "./Button"; diff --git a/examples/with-npm/packages/ui/package.json b/examples/with-npm/packages/ui/package.json new file mode 100644 index 0000000..ce16212 --- /dev/null +++ b/examples/with-npm/packages/ui/package.json @@ -0,0 +1,19 @@ +{ + "name": "ui", + "version": "0.0.0", + "main": "./index.tsx", + "types": "./index.tsx", + "license": "MIT", + "scripts": { + "lint": "eslint \"**/*.ts*\"" + }, + "devDependencies": { + "@types/react": "^17.0.37", + "@types/react-dom": "^17.0.11", + "eslint": "^7.32.0", + "eslint-config-custom": "*", + "react": "18.2", + "tsconfig": "*", + "typescript": "^4.5.2" + } +} diff --git a/examples/with-npm/packages/ui/tsconfig.json b/examples/with-npm/packages/ui/tsconfig.json new file mode 100644 index 0000000..cd6c94d --- /dev/null +++ b/examples/with-npm/packages/ui/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "tsconfig/react-library.json", + "include": ["."], + "exclude": ["dist", "build", "node_modules"] +} |
