Skip to content

Commit e53845c

Browse files
create component package to own all components
1 parent 6615168 commit e53845c

File tree

12 files changed

+19
-19
lines changed

12 files changed

+19
-19
lines changed

apps/nextjs-nativewind/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@method-inc/toolbar": "workspace:*",
4141
"@method-inc/tooltip": "workspace:*",
4242
"@method-inc/types": "workspace:*",
43-
"@method-inc/components/input": "workspace:*",
43+
"@method-inc/components": "workspace:*",
4444
"class-variance-authority": "^0.7.0",
4545
"clsx": "^2.1.1",
4646
"lucide-react-native": "^0.451.0",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"dev:docs": "turbo dev --filter=./apps/docs",
1111
"lint": "turbo lint",
1212
"test": "turbo test",
13-
"build": "turbo build --filter=./packages/**",
13+
"build": "turbo build --filter=./packages/*",
1414
"build:docs": "turbo build --filter=./apps/docs",
1515
"build:expo-nativewind": "turbo build --filter=\"...{./apps/expo-nativewind}\"",
1616
"publish-all:primitives:next": "turbo pub:next --filter=./packages/* --concurrency=34",
17-
"publish-all:primitives": "turbo pub:release --filter=./packages/** --concurrency=34",
17+
"publish-all:primitives": "turbo pub:release --filter=./packages/* --concurrency=34",
1818
"clean": "turbo clean && rm -rf .turbo node_modules"
1919
},
2020
"devDependencies": {

packages/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './input';
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/components/input/package.json renamed to packages/components/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@method-inc/components/input",
2+
"name": "@method-inc/components",
33
"version": "1.1.2",
44
"description": "Method input",
55
"license": "MIT",
@@ -25,11 +25,11 @@
2525
"types": "./dist/index.d.ts",
2626
"default": "./dist/index.js"
2727
},
28-
"./dist/input": {
29-
"import": "./dist/input.mjs",
30-
"require": "./dist/input.js",
31-
"types": "./dist/input.d.ts",
32-
"default": "./dist/input.js"
28+
"./input": {
29+
"import": "./dist/input/input.mjs",
30+
"require": "./dist/input/input.js",
31+
"types": "./dist/input/input.d.ts",
32+
"default": "./dist/input/input.js"
3333
}
3434
},
3535
"files": [

packages/components/input/tsconfig.json renamed to packages/components/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"jsxImportSource": "nativewind",
44
"jsx": "preserve",
55
"include": [
6-
"./src/**/*",
6+
"./",
77
"nativewind-env.d.ts"
88
],
99
"compilerOptions": {

packages/components/input/tsup.config.ts renamed to packages/components/tsup.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { defineConfig, Options } from 'tsup';
22

33
export default defineConfig((options: Options) => ({
4-
entry: ['src/index.ts', 'src/input.tsx'],
4+
entry: ['index.ts', './input/input.tsx'],
55
banner: {
66
js: "'use client'",
77
},
88
clean: true,
99
format: ['cjs', 'esm'],
10-
external: ['react', './input'],
10+
external: ['react', './commponents'],
1111
dts: true,
1212
...options,
1313
esbuildOptions(options) {

0 commit comments

Comments
 (0)