Skip to content

Commit

Permalink
fix(core): gen d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed May 13, 2023
1 parent 75d75c0 commit 00bc6cc
Show file tree
Hide file tree
Showing 4 changed files with 301 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/pdfeasy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"esbuild": "0.17.18",
"esbuild-plugin-alias": "0.2.1",
"esbuild-plugin-fileloc": "0.0.6",
"esbuild-plugin-d.ts": "1.1.0",
"esbuild-plugin-replace": "1.3.0",
"esbuild-plugin-resolve": "1.0.3",
"esm": "3.2.25",
Expand Down
3 changes: 3 additions & 0 deletions packages/pdfeasy/scripts/build.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { build } = require('esbuild')
const alias = require('esbuild-plugin-alias')
const replace = require('esbuild-plugin-resolve')
const { dtsPlugin } = require("esbuild-plugin-d.ts");

const browserPlugin = require('node-stdlib-browser/helpers/esbuild/plugin')
const stdlib = require('node-stdlib-browser')
Expand Down Expand Up @@ -30,6 +31,7 @@ const client = () => {
Buffer: 'Buffer',
},
plugins: [
dtsPlugin(),
alias({
pdfkit: require.resolve('pdfkit/js/pdfkit.standalone.js'),
fontkit: require.resolve('fontkit-next'),
Expand Down Expand Up @@ -65,6 +67,7 @@ const node = () => {
sourcemap: process.env.NODE_ENV === 'production',
minify: process.env.NODE_ENV === 'production',
plugins: [
dtsPlugin(),
replace({
// See https://github.com/Pzixel/PDFKit-example/pull/1/files
"var fs = _interopDefault(require('fs'));": "var fs = require('fs');",
Expand Down
1 change: 0 additions & 1 deletion packages/vue/src/env.d.ts

This file was deleted.

298 changes: 297 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 00bc6cc

Please sign in to comment.