@ramong26/xp-components 1.0.5 → 1.0.8

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.
@@ -46,9 +46,6 @@ function App() {
46
46
  ] });
47
47
  }
48
48
  var App_default = App;
49
-
50
- // src/components/Button/Button.tsx
51
- var import_jsx_runtime2 = require("react/jsx-runtime");
52
49
  // Annotate the CommonJS export names for ESM import in node:
53
50
  0 && (module.exports = {
54
51
  App
package/dist/index.css CHANGED
@@ -37,7 +37,7 @@
37
37
  color: #888;
38
38
  }
39
39
 
40
- /* ../../AppData/Local/Temp/tmp-24696-liJefVRyhxF5/xp-components/src/components/Button/Button.css */
40
+ /* ../../AppData/Local/Temp/tmp-18704-l8bbbxvlvDIx/xp-components/src/components/Button/Button.css */
41
41
  .btn {
42
42
  background: #fffbea;
43
43
  background-size: cover;
@@ -20,9 +20,6 @@ function App() {
20
20
  ] });
21
21
  }
22
22
  var App_default = App;
23
-
24
- // src/components/Button/Button.tsx
25
- import { jsx as jsx2 } from "react/jsx-runtime";
26
23
  export {
27
24
  App_default as App
28
25
  };
package/package.json CHANGED
@@ -1,17 +1,20 @@
1
1
  {
2
2
  "name": "@ramong26/xp-components",
3
3
  "private": false,
4
- "version": "1.0.5",
4
+ "version": "1.0.8",
5
5
  "type": "module",
6
- "main": "dist/index.cjs.js",
7
- "module": "dist/index.mjs",
6
+ "main": "dist/index.cjs",
7
+ "module": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "import": "./dist/index.mjs",
12
- "require": "./dist/index.cjs.js"
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs",
14
+ "default": "./dist/index.js"
13
15
  },
14
- "./styles": "./dist/index.css"
16
+ "./styles": "./dist/index.css",
17
+ "./package.json": "./package.json"
15
18
  },
16
19
  "files": [
17
20
  "dist",
@@ -33,36 +36,56 @@
33
36
  },
34
37
  "author": "ramong23",
35
38
  "license": "MIT",
36
- "scripts": {
37
- "dev": "vite",
38
- "build:lib": "tsup src/index.ts --dts --format cjs,esm --out-dir dist --clean",
39
- "build": "pnpm build:lib",
40
- "storybook": "storybook dev -p 6006",
41
- "build-storybook": "storybook build",
42
- "test": "vitest",
43
- "pack": "pnpm build:lib && npm pack",
44
- "lint": "eslint . --ext .ts,.tsx",
45
- "typecheck": "tsc --noEmit"
39
+ "sideEffects": [
40
+ "**/*.css"
41
+ ],
42
+ "publishConfig": {
43
+ "access": "public"
46
44
  },
47
45
  "peerDependencies": {
48
46
  "react": ">=18 <20",
49
47
  "react-dom": ">=18 <20"
50
48
  },
51
49
  "devDependencies": {
50
+ "@eslint/js": "^9.36.0",
52
51
  "@storybook/react-vite": "^9.1.8",
53
52
  "@testing-library/jest-dom": "^6.8.0",
53
+ "@types/jsdom": "^21.1.7",
54
54
  "@types/react": "^18.3.24",
55
55
  "@types/react-dom": "^18.3.7",
56
+ "@typescript-eslint/eslint-plugin": "^8.44.1",
57
+ "@typescript-eslint/parser": "^8.44.1",
58
+ "@vitejs/plugin-react": "^5.0.3",
56
59
  "esbuild-plugin-sass": "^1.0.1",
60
+ "eslint": "^9.36.0",
61
+ "eslint-plugin-react": "^7.37.5",
62
+ "eslint-plugin-react-hooks": "^5.2.0",
63
+ "eslint-plugin-react-refresh": "^0.4.21",
64
+ "eslint-plugin-storybook": "^9.1.8",
65
+ "globals": "^16.4.0",
66
+ "happy-dom": "^18.0.1",
67
+ "jsdom": "^27.0.0",
57
68
  "sass": "^1.90.0",
58
69
  "storybook": "9.1.2",
59
70
  "tsup": "^8.5.0",
60
71
  "typescript": "~5.8.3",
72
+ "typescript-eslint": "^8.44.1",
61
73
  "vite": "^7.1.2",
62
74
  "vitest": "^3.2.4"
63
75
  },
64
76
  "dependencies": {
65
77
  "@testing-library/react": "^16.3.0",
66
78
  "@testing-library/user-event": "^14.6.1"
79
+ },
80
+ "scripts": {
81
+ "dev": "vite",
82
+ "build:lib": "tsup src/index.ts --dts --format cjs,esm --out-dir dist --clean",
83
+ "build": "pnpm build:lib",
84
+ "storybook": "storybook dev -p 6006",
85
+ "build-storybook": "storybook build",
86
+ "test": "vitest",
87
+ "pack": "pnpm build:lib && npm pack",
88
+ "lint": "pnpm exec eslint . --ext .ts,.tsx",
89
+ "typecheck": "tsc --noEmit"
67
90
  }
68
- }
91
+ }