Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Apr 8, 2024
1 parent 9c0352e commit 29aca92
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
9 changes: 2 additions & 7 deletions package.config.ts
Expand Up @@ -4,6 +4,8 @@ export default defineConfig({
dist: 'lib',
tsconfig: 'tsconfig.lib.json',

legacyExports: true,

// Remove this block to enable strict export validation
extract: {
rules: {
Expand All @@ -13,11 +15,4 @@ export default defineConfig({
'ae-missing-release-tag': 'off',
},
},
bundles: [
{
source: './src/_exports/index.ts',
require: './lib/index.js',
import: './lib/index.esm.js',
},
],
})
9 changes: 2 additions & 7 deletions package.json
Expand Up @@ -25,20 +25,15 @@
"type": "module",
"exports": {
".": {
"types": "./lib/index.d.ts",
"source": "./src/_exports/index.ts",
"require": "./lib/index.cjs",
"node": {
"module": "./lib/index.js",
"import": "./lib/index.cjs.js"
},
"import": "./lib/index.js",
"require": "./lib/index.cjs",
"default": "./lib/index.js"
},
"./package.json": "./package.json"
},
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"module": "./lib/index.esm.js",
"source": "./src/_exports/index.ts",
"types": "./lib/index.d.ts",
"files": [
Expand Down
1 change: 1 addition & 0 deletions src/util/generateJwt.ts
Expand Up @@ -30,6 +30,7 @@ export function generateJwt<T extends Audience>(
throw new TypeError('Missing signingKeyPrivate')
}

// @ts-expect-error - handle missing typings for this package
const {default: sign} = suspend(() => import('jsonwebtoken-esm/sign'), ['jsonwebtoken-esm/sign'])

return sign(
Expand Down
1 change: 0 additions & 1 deletion tsconfig.settings.json
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"moduleResolution": "node",
"target": "esnext",
"jsx": "preserve",
"module": "preserve",
Expand Down

0 comments on commit 29aca92

Please sign in to comment.