Skip to content

Commit 7651c1a

Browse files
authored
Merge pull request #182 from neplextech/release-beta
Release 6.0.0-beta.0
2 parents 6ad37b7 + d080e76 commit 7651c1a

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

benchmark/Roboto-Regular.ttf

-167 KB
Binary file not shown.

benchmark/jsx-renderer.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import b from 'benny';
22
import { Builder, JSX, Font } from '../dist/index.mjs';
33

4-
const roboto = await Font.fromFile('./Roboto-Regular.ttf', 'Roboto');
4+
const geist = Font.loadDefault();
55

66
const builder = new Builder(800, 185);
77
builder.style = {
88
display: 'flex',
9-
fontFamily: roboto.name
9+
fontFamily: geist.name
1010
};
1111

1212
builder.addComponent(

package.json

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
{
22
"name": "canvacord",
3-
"description": "Generate images on-the-fly inside your node application",
4-
"version": "6.0.0",
3+
"description": "Generate images on-the-fly with the help of wide range of templates.",
4+
"version": "6.0.0-beta.0",
55
"main": "./dist/index.js",
6+
"exports": {
7+
"require": {
8+
"default": "./dist/index.js",
9+
"types": "./dist/index.d.ts"
10+
},
11+
"import": {
12+
"default": "./dist/index.mjs",
13+
"types": "./dist/index.d.mts"
14+
}
15+
},
16+
"files": [
17+
"dist"
18+
],
619
"dependencies": {
720
"@napi-rs/canvas": "^0.1.41",
821
"@napi-rs/image": "^1.7.0",
@@ -31,7 +44,7 @@
3144
"nodejs",
3245
"typescript"
3346
],
34-
"author": "Neplex",
47+
"author": "twlite",
3548
"license": "MIT",
3649
"bugs": {
3750
"url": "https://github.com/neplextech/canvacord/issues"
@@ -48,4 +61,4 @@
4861
"tsx": "^3.12.7",
4962
"typescript": "^5.1.3"
5063
}
51-
}
64+
}

test/leaderboard.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Font, LeaderboardBuilder } from '../src';
1+
import { Font, LeaderboardBuilder } from '../dist/index.js';
22
import { writeFileSync } from 'fs';
33

44
Font.loadDefault();

0 commit comments

Comments
 (0)