Skip to content

Commit d60b76f

Browse files
build: update plugin-beatsfoundation ESM configuration
Co-Authored-By: Sayo <hi@sayo.wtf>
1 parent 9f64f41 commit d60b76f

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

packages/plugin-beatsfoundation/package.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22
"name": "@elizaos/plugin-beatsfoundation",
33
"version": "0.0.1",
44
"description": "Beats Foundation plugin for ElizaOS",
5-
"main": "dist/index.js",
6-
"types": "dist/index.d.ts",
5+
"type": "module",
6+
"main": "./dist/index.js",
7+
"types": "./dist/index.d.ts",
8+
"exports": {
9+
".": {
10+
"types": "./dist/index.d.ts",
11+
"import": "./dist/index.js"
12+
}
13+
},
714
"scripts": {
815
"build": "tsup --format esm --dts",
916
"clean": "rimraf dist",

packages/plugin-beatsfoundation/tsconfig.json

+12-9
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@
33
"compilerOptions": {
44
"target": "ESNext",
55
"module": "ESNext",
6-
"moduleResolution": "NodeNext",
6+
"moduleResolution": "Bundler",
77
"outDir": "dist",
88
"rootDir": "src",
9+
"strict": true,
10+
"esModuleInterop": true,
11+
"skipLibCheck": true,
912
"declaration": true,
10-
"emitDeclarationOnly": true,
11-
"types": ["node"]
13+
"resolveJsonModule": true,
14+
"allowImportingTsExtensions": true,
15+
"baseUrl": ".",
16+
"paths": {
17+
"@elizaos/core": ["../core/src"]
18+
}
1219
},
13-
"include": [
14-
"src/**/*.ts"
15-
],
16-
"references": [
17-
{ "path": "../core" }
18-
]
20+
"include": ["src/**/*"],
21+
"exclude": ["node_modules", "dist"]
1922
}

0 commit comments

Comments
 (0)