@xwadex/fesd-next 0.1.36-bata → 0.1.38-bata

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.
@@ -6,7 +6,6 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
6
6
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7
7
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
8
8
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
9
- import "./Demo.scss";
10
9
  import { usePathname } from 'next/navigation';
11
10
  import React, { useEffect, useState } from 'react';
12
11
  export function Demo(_ref) {
@@ -0,0 +1,5 @@
1
+ .test {
2
+ background-color: #ff0000;
3
+ }
4
+
5
+ /*# sourceMappingURL=main.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sourceRoot":"","sources":["../../package/styles/components/Demo.scss"],"names":[],"mappings":"AAAA;EACE","file":"main.css"}
@@ -0,0 +1,3 @@
1
+ .test {
2
+ background-color: #ff0000;
3
+ }
@@ -0,0 +1 @@
1
+ @forward "Demo";
@@ -0,0 +1 @@
1
+ @forward "components";
@@ -0,0 +1,3 @@
1
+ .test {
2
+ background-color: #ff0000;
3
+ }
@@ -0,0 +1 @@
1
+ @forward "Demo";
@@ -1,4 +1,3 @@
1
- import "./Demo.scss";
2
1
  import React from 'react';
3
2
  export declare function Demo({ title }: {
4
3
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwadex/fesd-next",
3
- "version": "0.1.36-bata",
3
+ "version": "0.1.38-bata",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -12,7 +12,11 @@
12
12
  "dev": "next dev",
13
13
  "build": "next build",
14
14
  "start": "next start",
15
- "build:package": "babel package -d dist --extensions '.ts,.tsx' && tsc --project tsconfig.package.json"
15
+ "build:babel": "rm -rf dist && babel package -d dist --extensions '.ts,.tsx'",
16
+ "build:tsc": "tsc --project tsconfig.package.json",
17
+ "build:sass": "sass package/styles/main.scss:dist/styles/main.css && pnpm build:copysass",
18
+ "build:copysass": "copyfiles -u 2 'package/styles/**/*' 'dist/styles/scss'",
19
+ "build:package": "pnpm build:babel && pnpm build:tsc && pnpm build:sass"
16
20
  },
17
21
  "exports": {
18
22
  ".": {
@@ -20,8 +24,17 @@
20
24
  "require": "./dist/index.js",
21
25
  "types": "./dist/types/index.d.ts"
22
26
  },
23
- "./components": "./dist/components/index.js",
24
- "./hooks": "./dist/hooks/index.js"
27
+ "./components": {
28
+ "import": "./dist/components/index.js",
29
+ "require": "./dist/components/index.js",
30
+ "types": "./dist/types/components/index.d.ts"
31
+ },
32
+ "./hooks": {
33
+ "import": "./dist/hooks/index.js",
34
+ "require": "./dist/hooks/index.js",
35
+ "types": "./dist/types/hooks/index.d.ts"
36
+ },
37
+ "./styles": "./dist/styles/main.css"
25
38
  },
26
39
  "peerDependencies": {
27
40
  "next": ">=15",
@@ -43,6 +56,7 @@
43
56
  "@types/react": "^18",
44
57
  "@types/react-dom": "^18",
45
58
  "babel-plugin-styled-components": "^2.1.4",
59
+ "copyfiles": "^2.4.1",
46
60
  "eslint": "^8",
47
61
  "eslint-config-next": "15.0.3",
48
62
  "sass": "^1.81.0",