next-font 1.0.1 → 1.0.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/README.md CHANGED
@@ -10,7 +10,7 @@ npm install next-font
10
10
 
11
11
  ### Usage
12
12
 
13
- Exact same usage as `next/font`
13
+ Exact same usage as `next/font`/`@next/font`.
14
14
 
15
15
  A example using google fonts:
16
16
 
@@ -33,4 +33,3 @@ const myFont = localFont({
33
33
  ```
34
34
 
35
35
  See the Next.js [API Page](https://nextjs.org/docs/app/api-reference/components/font) for more options.
36
-
package/google/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from '../dist/google'
1
+ export * from '../dist/google';
package/google/index.js CHANGED
@@ -4,7 +4,7 @@ if (semver.lt(require('next/package.json').version, '13.0.0')) {
4
4
  throw new Error('`@next/font` is only available in Next.js 13 and newer.')
5
5
  }*/
6
6
 
7
- let message = '@next/font/google failed to run or is incorrectly configured.'
7
+ const message = '@next/font/google failed to run or is incorrectly configured.';
8
8
  /*if (process.env.NODE_ENV === 'development') {
9
9
  message +=
10
10
  '\nIf you just installed `@next/font`, please try restarting `next dev` and resaving your file.'
@@ -12,4 +12,4 @@ let message = '@next/font/google failed to run or is incorrectly configured.'
12
12
 
13
13
  message += `\n\nRead more: https://nextjs.org/docs/app/building-your-application/optimizing/fonts`*/
14
14
 
15
- throw new Error(message)
15
+ throw new Error(message);
@@ -1 +1 @@
1
- export { default } from '../dist/google/loader'
1
+ export { default } from '../dist/google/loader';
package/google/loader.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('../dist/google/loader')
1
+ module.exports = require('../dist/google/loader');
package/local/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { default } from '../dist/local/index'
1
+ export { default } from '../dist/local/index';
package/local/index.js CHANGED
@@ -4,7 +4,7 @@ if (semver.lt(require('next/package.json').version, '13.0.0')) {
4
4
  throw new Error('`@next/font` is only available in Next.js 13 and newer.')
5
5
  }*/
6
6
 
7
- let message = '@next/font/local failed to run or is incorrectly configured.'
7
+ const message = '@next/font/local failed to run or is incorrectly configured.';
8
8
  /*if (process.env.NODE_ENV === 'development') {
9
9
  message +=
10
10
  '\nIf you just installed `@next/font`, please try restarting `next dev` and resaving your file.'
@@ -12,4 +12,4 @@ let message = '@next/font/local failed to run or is incorrectly configured.'
12
12
 
13
13
  message += `\n\nRead more: https://nextjs.org/docs/app/building-your-application/optimizing/fonts`*/
14
14
 
15
- throw new Error(message)
15
+ throw new Error(message);
package/local/loader.d.ts CHANGED
@@ -1 +1 @@
1
- export { default } from '../dist/local/loader'
1
+ export { default } from '../dist/local/loader';
package/local/loader.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('../dist/local/loader')
1
+ module.exports = require('../dist/local/loader');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "next-font",
3
3
  "type": "module",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "license": "BSD-2-Clause",
6
6
  "files": [
7
7
  "dist",
@@ -24,6 +24,9 @@
24
24
  "types": "./dist/*.d.ts"
25
25
  }
26
26
  },
27
+ "scripts": {
28
+ "build": "./build.ts"
29
+ },
27
30
  "devDependencies": {
28
31
  "@types/fontkit": "^2.0.8",
29
32
  "@next/font": "canary",
@@ -32,8 +35,5 @@
32
35
  },
33
36
  "publishConfig": {
34
37
  "access": "public"
35
- },
36
- "scripts": {
37
- "build": "./build.ts"
38
38
  }
39
- }
39
+ }