@cnc-ti/layout-basic 8.1.0 → 8.1.2

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.
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@cnc-ti/layout-basic",
3
- "version": "8.1.0",
3
+ "version": "8.1.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
9
- "build": "tsup src/index.ts --format esm,cjs --dts --external react --minify",
10
- "dev": "tsup src/index.ts --format esm,cjs --dts --external react --watch"
9
+ "build": "tsup src/index.ts --format esm,cjs --dts --external react react-dom --minify",
10
+ "dev": "tsup src/index.ts --format esm,cjs --dts --external reacreact-dom --watch"
11
11
  },
12
12
  "keywords": [],
13
13
  "author": "",
@@ -20,7 +20,7 @@
20
20
  "class-variance-authority": "^0.7.0",
21
21
  "lucide-react": "^0.453.0",
22
22
  "postcss": "^8.4.47",
23
- "react": "^18.3.1",
23
+ "react": "^18.0.0",
24
24
  "tailwind-merge": "^2.5.4",
25
25
  "tailwindcss": "^3.4.14",
26
26
  "tsup": "^8.3.0",
@@ -29,5 +29,8 @@
29
29
  "dependencies": {
30
30
  "@radix-ui/react-accordion": "^1.2.1",
31
31
  "@radix-ui/react-slot": "^1.1.0"
32
+ },
33
+ "peerDependencies": {
34
+ "react": ">=18.0.0"
32
35
  }
33
36
  }
package/tsconfig.json CHANGED
@@ -19,6 +19,4 @@
19
19
  "module": "ESNext",
20
20
  "target": "es6"
21
21
  },
22
- "exclude": ["node_modules"],
23
- "include": ["src"]
24
22
  }
package/tsup.config.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { defineConfig } from 'tsup';
2
+
3
+ export default defineConfig({
4
+ entry: ['src/index.ts'], // Caminho para o seu arquivo de entrada
5
+ external: ['react', 'react-dom'], // Marcar React como externo
6
+ format: ['esm', 'cjs'], // Formatos de output (ESM e CommonJS)
7
+ dts: true, // Gerar arquivos de tipagem .d.ts
8
+ splitting: false, // Desativar divisão de código
9
+ sourcemap: true, // Gerar sourcemap
10
+ clean: true, // Limpar o diretório de build antes de reconstruir
11
+ });