Skip to content

Commit 63525dc

Browse files
feat: make agent-module use unbuild
1 parent 44c8816 commit 63525dc

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

packages/modules/agent/build.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ import { defineBuildConfig } from 'unbuild'
22

33
export default defineBuildConfig({
44
externals: [],
5+
failOnWarn: false,
56
})

packages/modules/agent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@magickml/grimoire/agent",
2+
"name": "@magickml/agent-module",
33
"version": "0.0.1",
44
"exports": {
55
".": {

packages/modules/agent/project.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
"targets": {
1616
"build": {
1717
"executor": "nx:run-commands",
18-
"outputs": ["{options.outputPath}"],
1918
"options": {
20-
"command": "cd packages/modules/agent && npx unbuild",
21-
"outputPath": "dist/packages/modules/agent",
22-
"tsConfig": "packages/modules/agent/tsconfig.lib.json",
23-
"packageJson": "packages/modules/agent/package.json",
24-
"main": "packages/modules/agent/src/index.ts",
25-
"assets": ["packages/modules/agent/*.md"]
19+
"commands": [
20+
"mkdir -p ./dist/packages/modules/agent",
21+
"touch ./dist/packages/modules/agent/.gitkeep",
22+
"cd packages/modules/agent && pwd && npx unbuild",
23+
"cp -r ./packages/modules/agent/* ./dist/packages/modules/agent"
24+
],
25+
"parallel": false
2626
}
2727
},
2828
"nx-release-publish": {
2929
"options": {
30-
"packageRoot": "dist/{projectRoot}"
30+
"packageRoot": "packages/modules/agent"
3131
}
3232
},
3333
"test": {

0 commit comments

Comments
 (0)