@croco/utils-next-font-pretendard 0.0.2 → 0.0.4

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/dist/index.cjs ADDED
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ var localFont = require('next/font/local');
4
+
5
+ const pretendardFont = localFont({ src: '../PretendardVariable.woff2', display: 'swap', weight: '45 920' });
6
+
7
+ exports.pretendardFont = pretendardFont;
8
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;MAEa,cAAc,GAAG,SAAS,CAAC,EAAE,GAAG,EAAE,6BAA6B,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE;;;;"}
@@ -0,0 +1,2 @@
1
+ export declare const pretendardFont: import("next/dist/compiled/@next/font").NextFont;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,kDAAuF,CAAC"}
package/dist/index.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import localFont from 'next/font/local';
2
+
3
+ const pretendardFont = localFont({ src: '../PretendardVariable.woff2', display: 'swap', weight: '45 920' });
4
+
5
+ export { pretendardFont };
6
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;MAEa,cAAc,GAAG,SAAS,CAAC,EAAE,GAAG,EAAE,6BAA6B,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE;;;;"}
package/package.json CHANGED
@@ -1,36 +1,43 @@
1
1
  {
2
2
  "name": "@croco/utils-next-font-pretendard",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "commonjs",
5
- "files": ["src", "PretendardVariable.woff2"],
6
- "main": "./src/index.js",
7
- "types": "./src/index.d.ts",
8
- "import": "./src/index.mjs",
9
- "module": "./src/index.mjs",
5
+ "files": [
6
+ "dist",
7
+ "PretendardVariable.woff2"
8
+ ],
9
+ "main": "./dist/index.cjs",
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "module": "./dist/index.mjs",
10
13
  "exports": {
11
14
  ".": {
12
15
  "require": {
13
- "types": "./src/index.d.ts",
14
- "default": "./src/index.js"
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.cjs"
15
18
  },
16
19
  "import": {
17
- "types": "./src/index.d.mts",
18
- "default": "./src/index.mjs"
20
+ "types": "./dist/index.d.ts",
21
+ "default": "./dist/index.mjs"
19
22
  }
20
23
  }
21
24
  },
22
- "scripts": {
23
- "typecheck": "tsc --noEmit",
24
- "lint": "eslint **/*.ts*"
25
- },
26
25
  "peerDependencies": {
27
- "next": "^14.0.0"
26
+ "next": "^15.0.0"
28
27
  },
29
28
  "devDependencies": {
30
- "@croco/eslint-config": "workspace:*",
31
- "@croco/utils-tsconfig": "workspace:*"
29
+ "rollup": "4.29.1",
30
+ "@rollup/plugin-typescript": "12.1.2",
31
+ "next": "15.1.2",
32
+ "@croco/utils-tsconfig": "0.0.0",
33
+ "@croco/eslint-config": "0.0.0"
32
34
  },
33
35
  "publishConfig": {
34
36
  "access": "public"
37
+ },
38
+ "scripts": {
39
+ "build": "rollup -c rollup.config.mjs",
40
+ "typecheck": "tsc --noEmit",
41
+ "lint": "eslint **/*.ts*"
35
42
  }
36
43
  }
package/src/index.d.mts DELETED
@@ -1,5 +0,0 @@
1
- import * as next_dist_compiled__next_font from 'next/dist/compiled/@next/font';
2
-
3
- declare const pretendardFont: next_dist_compiled__next_font.NextFont;
4
-
5
- export { pretendardFont };
package/src/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import * as next_dist_compiled__next_font from 'next/dist/compiled/@next/font';
2
-
3
- declare const pretendardFont: next_dist_compiled__next_font.NextFont;
4
-
5
- export { pretendardFont };
package/src/index.js DELETED
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- var r = require('next/font/local');
4
-
5
- function _interopDefault(e) {
6
- return e && e.__esModule ? e : { default: e };
7
- }
8
-
9
- var r__default = /*#__PURE__*/ _interopDefault(r);
10
-
11
- const a = r__default.default({ src: '../PretendardVariable.woff2', display: 'swap', weight: "45 920"});
12
-
13
- exports.pretendardFont = a;
package/src/index.mjs DELETED
@@ -1,5 +0,0 @@
1
- import r from 'next/font/local';
2
-
3
- const a=r({src:"../PretendardVariable.woff2",display:"swap",weight:"45 920"});
4
-
5
- export { a as pretendardFont };