Skip to content

Commit

Permalink
fixed generating api
Browse files Browse the repository at this point in the history
  • Loading branch information
auscyber committed May 14, 2023
1 parent a49338e commit 96c6952
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tasks/compile-api.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { build } from 'esbuild';
import fs from 'fs-extra';
import pjson from '../package.json';
import types from '../src/types';
import pjson from '../package.json' assert { type: 'json' };
import * as types from '../types.js';

async function api() {
await fs.remove('deadname-remover.require.js');
Expand Down
2 changes: 1 addition & 1 deletion tasks/generate-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ async function generateType() {
await build({
entryPoints: ['src/types.ts'],
outfile: 'types.js',
format: 'cjs',
format: 'esm',
sourcemap: false,
minify: false,
bundle: false,
Expand Down

0 comments on commit 96c6952

Please sign in to comment.