Skip to content

Commit 3113522

Browse files
committed
add build-block-dev for local development
1 parent 849765e commit 3113522

File tree

7 files changed

+168
-36
lines changed

7 files changed

+168
-36
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ work/
77
log/
88
.turbo
99
vite.config.*.timestamp-*
10+
software/**/*.sw.json
1011
software/*.tgz

model/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const model = BlockModel.create<BlockArgs>()
1010

1111
.output('tengoMessage', (ctx) => ctx.outputs?.resolve('tengoMessage')?.getDataAsJson())
1212

13-
.output('pythonMessage', (ctx) => ctx.outputs?.resolve('pythonMessage')?.getDataAsJson())
13+
.output('pythonMessage', (ctx) => ctx.outputs?.resolve('pythonMessage')?.getDataAsString())
1414

1515
.sections([{ type: 'link', href: '/', label: 'Main' }])
1616

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"scripts": {
55
"pretty": "prettier --write \"./**/*.{js,jsx,mjs,cjs,ts,tsx,json,vue}\"",
66
"build-block": "turbo run build && rm -rf block-pack/* && block-tools pack",
7+
"build-block-dev": "turbo run build:dev && rm -rf block-pack && block-tools pack",
78
"build-block-force": "turbo run build --force && rm -rf block-pack/* && block-tools pack",
89
"test-block": "turbo run test --concurrency 1",
9-
"watch": "turbo watch build",
10-
"prepublishOnly": "block-tools pack && block-tools publish -r 's3://milab-euce1-prod-pkgs-s3-block-registry/pub/releases/?region=eu-central-1'"
10+
"watch": "turbo watch build"
1111
},
1212
"files": [
1313
"index.d.ts",

0 commit comments

Comments
 (0)