Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
agentcore --version
agentcore create --name sanitytest --language Python --framework Strands --model-provider Bedrock --memory none --json
test -f sanitytest/agentcore/agentcore.json
agentcore package --directory integ-tests/fixtures/typescript-package
test -f integ-tests/fixtures/typescript-package/agentcore/TestRuntime.zip
- name: Upload tarball artifact
if: matrix.node-version == '20.x'
uses: actions/upload-artifact@v7
Expand Down
2 changes: 1 addition & 1 deletion esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ await esbuild.build({
banner: {
js: `import { createRequire } from 'module'; import { fileURLToPath as __ef } from 'url'; import { dirname as __ed } from 'path'; const require = createRequire(import.meta.url); const __filename = __ef(import.meta.url); const __dirname = __ed(__filename);`,
},
external: ['fsevents', '@aws-cdk/toolkit-lib', '@napi-rs/keyring'],
external: ['esbuild', 'fsevents', '@aws-cdk/toolkit-lib', '@napi-rs/keyring'],
plugins: [optionalDepsPlugin, textLoaderPlugin],
});

Expand Down
14 changes: 14 additions & 0 deletions integ-tests/fixtures/typescript-package/agentcore/agentcore.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "PackageTest",
"version": 1,
"runtimes": [
{
"name": "TestRuntime",
"build": "CodeZip",
"entrypoint": "main.ts",
"codeLocation": "./app/TestRuntime",
"runtimeVersion": "NODE_22",
"protocol": "HTTP"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// The packaged CLI only needs a valid TypeScript entry point to exercise esbuild.
export {};
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "typescript-package-fixture",
"version": "1.0.0",
"private": true
}
29 changes: 1 addition & 28 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"@smithy/shared-ini-file-loader": "^4.4.2",
"commander": "^14.0.2",
"dotenv": "^17.2.3",
"esbuild": "^0.28.0",
"fast-json-stable-stringify": "^2.1.0",
"fflate": "^0.8.2",
"handlebars": "^4.7.8",
Expand Down Expand Up @@ -143,7 +144,6 @@
"@xterm/headless": "^6.0.0",
"aws-cdk-lib": "^2.258.0",
"constructs": "^10.4.4",
"esbuild": "^0.28.0",
"eslint": "^9.39.4",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
Expand Down
Loading