File tree Expand file tree Collapse file tree 5 files changed +154
-5
lines changed Expand file tree Collapse file tree 5 files changed +154
-5
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " CLDK TypeScript SDK (Bun)" ,
3
+ "image" : " oven/bun:latest" ,
4
+ "features" : {
5
+ "ghcr.io/devcontainers/features/node:1" : {
6
+ "version" : " 20"
7
+ },
8
+ "ghcr.io/devcontainers/features/java:1" : {
9
+ "version" : " 11"
10
+ }
11
+ },
12
+ "customizations" : {
13
+ "vscode" : {
14
+ "extensions" : [
15
+ " esbenp.prettier-vscode" ,
16
+ " dbaeumer.vscode-eslint" ,
17
+ " streetsidesoftware.code-spell-checker"
18
+ ],
19
+ "settings" : {
20
+ "editor.formatOnSave" : true ,
21
+ "editor.defaultFormatter" : " esbenp.prettier-vscode" ,
22
+ "typescript.tsdk" : " node_modules/typescript/lib"
23
+ }
24
+ }
25
+ },
26
+ "postCreateCommand" : " bun install" ,
27
+ "workspaceFolder" : " /workspace" ,
28
+ "mounts" : [
29
+ " source=${localWorkspaceFolder},target=/workspace,type=bind"
30
+ ]
31
+ }
Original file line number Diff line number Diff line change
1
+ name : Node Bun Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*.*.*"
7
+
8
+ permissions :
9
+ contents : write
10
+
11
+ env :
12
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
13
+
14
+ jobs :
15
+ release :
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - name : Checkout code
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Set up Node.js with Bun
23
+ uses : oven-sh/setup-bun@v1
24
+ with :
25
+ bun-version : " latest"
26
+
27
+ - name : Install Node package dependencies
28
+ run : bun install
29
+
30
+ - name : Inject latest Code Analyzer JAR
31
+ run : |
32
+ CODE_ANALYZER_URL=$(curl -s https://api.github.com/repos/codellm-devkit/codeanalyzer-java/releases/latest | jq -r '.assets[] | .browser_download_url')
33
+ echo "Downloading:" $CODE_ANALYZER_URL
34
+ wget -q $CODE_ANALYZER_URL
35
+ echo "Moving codeanalyzer jar to:" ${{ github.workspace }}/src/analysis/java/jars/
36
+ mv codeanalyzer-*.jar ${{ github.workspace }}/src/analysis/java/jars/
37
+
38
+ - name : Build package
39
+ run : bun run build
40
+
41
+ - name : Run Tests
42
+ id : test
43
+ continue-on-error : false
44
+ run : bun run test
45
+
46
+ - name : Generate Changelog
47
+ id : gen_changelog
48
+ uses : mikepenz/release-changelog-builder-action@v5
49
+ with :
50
+ failOnError : " true"
51
+ configuration : .github/workflows/release_config.json
52
+ env :
53
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54
+
55
+ - name : Publish package to npm via Bun
56
+ run : bun publish --access public
57
+ env :
58
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
59
+
60
+ - name : Publish Release on GitHub
61
+ uses : softprops/action-gh-release@v1
62
+ with :
63
+ body : ${{ steps.gen_changelog.outputs.changelog }}
64
+ env :
65
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ {
2
+ "categories" : [
3
+ {
4
+ "title" : " ## 🚀 Features" ,
5
+ "labels" : [" kind/feature" , " enhancement" ]
6
+ },
7
+ {
8
+ "title" : " ## 🐛 Fixes" ,
9
+ "labels" : [" fix" , " bug" ]
10
+ },
11
+ {
12
+ "title" : " ## ♻️ Refactoring" ,
13
+ "labels" : [" refactoring" ]
14
+ },
15
+ {
16
+ "title" : " ## ⚡️ Performance Improvements" ,
17
+ "labels" : [" performance" ]
18
+ },
19
+ {
20
+ "title" : " ## \uD83D\uDCDA Documentation" ,
21
+ "labels" : [" documentation" , " doc" ]
22
+ },
23
+ {
24
+ "title" : " ## \uD83D\uDEA6 Tests" ,
25
+ "labels" : [" test" ]
26
+ },
27
+ {
28
+ "title" : " ## \uD83D\uDEE0 Other Updates" ,
29
+ "labels" : [" other" , " kind/dependency-change" ]
30
+ },
31
+ {
32
+ "title" : " ## 🚨 Breaking Changes" ,
33
+ "labels" : [" breaking" ]
34
+ }
35
+ ],
36
+ "ignore_labels" : [
37
+ " ignore"
38
+ ]
39
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " cldk" ,
2
+ "name" : " @cldk/ cldk" ,
3
3
"version" : " 0.1.0" ,
4
4
"description" : " " ,
5
5
"main" : " dist/index.js" ,
6
+ "repository" : {
7
+ "type" : " git" ,
8
+ "url" : " https://github.com/codellm-devkit/typescript-sdk.git"
9
+ },
10
+ "bugs" : {
11
+ "url" : " https://github.com/codellm-devkit/typescript-sdk/issues"
12
+ },
13
+ "homepage" : " https://github.com/codellm-devkit/typescript-sdk#readme" ,
6
14
"scripts" : {
7
15
"build" : " bun build ./src/index.ts --outdir ./dist" ,
8
16
"test" : " bun test --preload ./test/conftest.ts --timeout=600000 --verbose" ,
9
- "clean" : " rm -rf dist coverage"
17
+ "clean" : " rm -rf dist coverage *.lock "
10
18
},
11
19
"files" : [
12
20
" dist" ,
21
29
"@types/node" : " ^22.14.1" ,
22
30
"typescript" : " ^5.8.3"
23
31
},
24
- "private" : true ,
32
+ "publishConfig" : {
33
+ "access" : " public"
34
+ },
25
35
"dependencies" : {
26
36
"@types/jsonstream" : " ^0.8.33" ,
27
37
"JSONStream" : " ^1.3.5" ,
Original file line number Diff line number Diff line change 13
13
"jsx" : " react-jsx" ,
14
14
"allowJs" : true ,
15
15
// Bundler mode
16
- "moduleResolution" : " bundler " ,
16
+ "moduleResolution" : " node " ,
17
17
"allowImportingTsExtensions" : true ,
18
18
"verbatimModuleSyntax" : true ,
19
19
"noEmit" : true ,
25
25
// Some stricter flags (disabled by default)
26
26
"noUnusedLocals" : false ,
27
27
"noUnusedParameters" : false ,
28
- "noPropertyAccessFromIndexSignature" : false
28
+ "noPropertyAccessFromIndexSignature" : false ,
29
+ "baseUrl" : " ." ,
30
+ "paths" : {
31
+ "cldk" : [" node_modules/@cldk/cldk" ]
32
+ }
29
33
},
30
34
"include" : [
31
35
" src"
You can’t perform that action at this time.
0 commit comments