Skip to content

Commit

Permalink
Merge pull request #182 from neplextech/release-beta
Browse files Browse the repository at this point in the history
Release 6.0.0-beta.0
  • Loading branch information
notunderctrl committed Nov 11, 2023
2 parents 6ad37b7 + d080e76 commit 7651c1a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
Binary file removed benchmark/Roboto-Regular.ttf
Binary file not shown.
4 changes: 2 additions & 2 deletions benchmark/jsx-renderer.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import b from 'benny';
import { Builder, JSX, Font } from '../dist/index.mjs';

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

const builder = new Builder(800, 185);
builder.style = {
display: 'flex',
fontFamily: roboto.name
fontFamily: geist.name
};

builder.addComponent(
Expand Down
21 changes: 17 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"name": "canvacord",
"description": "Generate images on-the-fly inside your node application",
"version": "6.0.0",
"description": "Generate images on-the-fly with the help of wide range of templates.",
"version": "6.0.0-beta.0",
"main": "./dist/index.js",
"exports": {
"require": {
"default": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"import": {
"default": "./dist/index.mjs",
"types": "./dist/index.d.mts"
}
},
"files": [
"dist"
],
"dependencies": {
"@napi-rs/canvas": "^0.1.41",
"@napi-rs/image": "^1.7.0",
Expand Down Expand Up @@ -31,7 +44,7 @@
"nodejs",
"typescript"
],
"author": "Neplex",
"author": "twlite",
"license": "MIT",
"bugs": {
"url": "https://github.com/neplextech/canvacord/issues"
Expand All @@ -48,4 +61,4 @@
"tsx": "^3.12.7",
"typescript": "^5.1.3"
}
}
}
2 changes: 1 addition & 1 deletion test/leaderboard.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Font, LeaderboardBuilder } from '../src';
import { Font, LeaderboardBuilder } from '../dist/index.js';
import { writeFileSync } from 'fs';

Font.loadDefault();
Expand Down

0 comments on commit 7651c1a

Please sign in to comment.