@nuvra-ui/react 0.0.5 → 0.0.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @nuvra-ui/react
2
2
 
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f5d0ea5`](https://github.com/nuvra-ui/Nuvra-UI/commit/f5d0ea55e52cbcf545f3a6e5ec0a12728e043492) - Bundling correct types and exporting them
8
+
3
9
  ## 0.0.5
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,15 +1,18 @@
1
1
  {
2
2
  "name": "@nuvra-ui/react",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
+ "main": "./dist/index.umd.js",
9
+ "module": "./dist/index.es.js",
8
10
  "types": "./dist/index.es.d.ts",
9
11
  "exports": {
10
12
  ".": {
11
13
  "types": "./dist/index.es.d.ts",
12
- "import": "./dist/index.es.js"
14
+ "import": "./dist/index.es.js",
15
+ "require": "./dist/index.umd.js"
13
16
  }
14
17
  },
15
18
  "peerDependencies": {
@@ -34,7 +37,8 @@
34
37
  "typescript-eslint": "^8.46.4",
35
38
  "vite": "npm:rolldown-vite@7.2.5",
36
39
  "vite-plugin-dts": "^4.5.4",
37
- "@nuvra-ui/eslint-config": "0.0.0"
40
+ "@nuvra-ui/eslint-config": "0.0.0",
41
+ "@nuvra-ui/typescript-config": "0.0.0"
38
42
  },
39
43
  "scripts": {
40
44
  "dev": "vite build --watch",
package/src/index.ts CHANGED
@@ -1 +1,3 @@
1
- export * from "./components/Button/Button";
1
+ export { Badge } from "./components/Badge/Badge";
2
+ export { Button } from "./components/Button/Button";
3
+ export { Link } from "./components/Link/Link";
package/tsconfig.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
- "files": [],
3
- "references": [
4
- { "path": "./tsconfig.app.json" },
5
- { "path": "./tsconfig.node.json" }
6
- ]
2
+ "extends": "@nuvra-ui/typescript-config/base.json",
3
+ "compilerOptions": {
4
+ "outDir": "dist",
5
+ "declaration": true,
6
+ "declarationMap": true,
7
+ "jsx": "react-jsx",
8
+ },
9
+ "include": ["src"],
10
+ "exclude": ["node_modules", "dist"]
7
11
  }
package/vite.config.ts CHANGED
@@ -4,7 +4,7 @@ import dts from "vite-plugin-dts";
4
4
  import { resolve } from "path";
5
5
 
6
6
  export default defineConfig({
7
- plugins: [react(), dts({ insertTypesEntry: true })],
7
+ plugins: [react(), dts({ insertTypesEntry: true, rollupTypes: true })],
8
8
  build: {
9
9
  lib: {
10
10
  entry: resolve(__dirname, "src/index.ts"),
package/tsconfig.app.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
- "target": "ES2022",
5
- "useDefineForClassFields": true,
6
- "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
- "module": "ESNext",
8
- "types": ["vite/client"],
9
- "skipLibCheck": true,
10
-
11
- /* Bundler mode */
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "verbatimModuleSyntax": true,
15
- "moduleDetection": "force",
16
- "emitDeclarationOnly": true,
17
- "declaration": true,
18
- "outDir": "dist",
19
- "jsx": "react-jsx",
20
-
21
- /* Linting */
22
- "strict": true,
23
- "noUnusedLocals": true,
24
- "noUnusedParameters": true,
25
- "erasableSyntaxOnly": true,
26
- "noFallthroughCasesInSwitch": true,
27
- "noUncheckedSideEffectImports": true,
28
- },
29
- "include": ["src"],
30
- }
@@ -1,26 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
- "target": "ES2023",
5
- "lib": ["ES2023"],
6
- "module": "ESNext",
7
- "types": ["node"],
8
- "skipLibCheck": true,
9
-
10
- /* Bundler mode */
11
- "moduleResolution": "bundler",
12
- "allowImportingTsExtensions": true,
13
- "verbatimModuleSyntax": true,
14
- "moduleDetection": "force",
15
- "noEmit": true,
16
-
17
- /* Linting */
18
- "strict": true,
19
- "noUnusedLocals": true,
20
- "noUnusedParameters": true,
21
- "erasableSyntaxOnly": true,
22
- "noFallthroughCasesInSwitch": true,
23
- "noUncheckedSideEffectImports": true
24
- },
25
- "include": ["vite.config.ts"]
26
- }