Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump version, fix dirname of SDK import #10

Merged
merged 1 commit into from
Jan 10, 2025
Merged
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.0.3] - 2025-01-10

### Changed

- Removed the `__sdk.js` developer file from the respoitory.
- Fixed the types for runAirtableScript.
- Made the distribution use a relative path for importing the SDK code.

## [0.0.2] - 2025-01-09

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jest-environment-airtable-script",
"version": "0.0.2",
"version": "0.0.3",
"description": "A jest environment for testing Airtable scripts in extensions and automations",
"license": "Apache-2.0",
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion src/environment/run-airtable-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const runAirtableScript = async ({
// The path is dynamically rewritten in the build script
const sdkScriptPath = process.env.JEST_AIRTABLE_TS_DEV
? './src/environment/sdk.js'
: './sdk.js'
: __dirname + '/sdk.js'
sdkScript = fs.readFileSync(sdkScriptPath, 'utf8').toString()
}

Expand Down
Loading