aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-changesets/packages/acme-core
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-changesets/packages/acme-core')
-rw-r--r--examples/with-changesets/packages/acme-core/.eslintrc.js4
-rw-r--r--examples/with-changesets/packages/acme-core/package.json31
-rw-r--r--examples/with-changesets/packages/acme-core/src/Button.tsx11
-rw-r--r--examples/with-changesets/packages/acme-core/src/index.tsx2
-rw-r--r--examples/with-changesets/packages/acme-core/tsconfig.json5
5 files changed, 53 insertions, 0 deletions
diff --git a/examples/with-changesets/packages/acme-core/.eslintrc.js b/examples/with-changesets/packages/acme-core/.eslintrc.js
new file mode 100644
index 0000000..b2a3fa9
--- /dev/null
+++ b/examples/with-changesets/packages/acme-core/.eslintrc.js
@@ -0,0 +1,4 @@
+module.exports = {
+ root: true,
+ extends: ["acme"],
+};
diff --git a/examples/with-changesets/packages/acme-core/package.json b/examples/with-changesets/packages/acme-core/package.json
new file mode 100644
index 0000000..8aa79ba
--- /dev/null
+++ b/examples/with-changesets/packages/acme-core/package.json
@@ -0,0 +1,31 @@
+{
+ "name": "@acme/core",
+ "version": "0.0.0",
+ "main": "./dist/index.js",
+ "module": "./dist/index.mjs",
+ "types": "./dist/index.d.ts",
+ "sideEffects": false,
+ "license": "MIT",
+ "files": [
+ "dist/**"
+ ],
+ "scripts": {
+ "build": "tsup src/index.tsx --format esm,cjs --dts --external react",
+ "dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react",
+ "lint": "eslint \"src/**/*.ts*\"",
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
+ },
+ "devDependencies": {
+ "@acme/tsconfig": "workspace:*",
+ "eslint": "^7.32.0",
+ "eslint-config-acme": "workspace:*",
+ "@types/react": "^17.0.13",
+ "@types/react-dom": "^17.0.8",
+ "react": "^17.0.2",
+ "tsup": "^5.10.1",
+ "typescript": "^4.5.3"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
+}
diff --git a/examples/with-changesets/packages/acme-core/src/Button.tsx b/examples/with-changesets/packages/acme-core/src/Button.tsx
new file mode 100644
index 0000000..fbd6ee0
--- /dev/null
+++ b/examples/with-changesets/packages/acme-core/src/Button.tsx
@@ -0,0 +1,11 @@
+import * as React from "react";
+
+export interface ButtonProps {
+ children: React.ReactNode;
+}
+
+export function Button(props: ButtonProps) {
+ return <button>{props.children}</button>;
+}
+
+Button.displayName = "Button";
diff --git a/examples/with-changesets/packages/acme-core/src/index.tsx b/examples/with-changesets/packages/acme-core/src/index.tsx
new file mode 100644
index 0000000..f623b20
--- /dev/null
+++ b/examples/with-changesets/packages/acme-core/src/index.tsx
@@ -0,0 +1,2 @@
+import * as React from "react";
+export { Button, type ButtonProps } from "./Button";
diff --git a/examples/with-changesets/packages/acme-core/tsconfig.json b/examples/with-changesets/packages/acme-core/tsconfig.json
new file mode 100644
index 0000000..9be70c0
--- /dev/null
+++ b/examples/with-changesets/packages/acme-core/tsconfig.json
@@ -0,0 +1,5 @@
+{
+ "extends": "@acme/tsconfig/react-library.json",
+ "include": ["."],
+ "exclude": ["dist", "build", "node_modules"]
+}