Skip to content

Commit

Permalink
Merge pull request #3 from usdigitalresponse/kevee/suppress-luxon-cir…
Browse files Browse the repository at this point in the history
…cular

feat: suppress luxon messages
  • Loading branch information
kevee authored Jan 10, 2025
2 parents 4cf41c7 + 836bd8f commit ca32728
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

9 changes: 9 additions & 0 deletions rollup-sdk.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ import typescript from '@rollup/plugin-typescript'

export default {
input: './src/environment/sdk/index.ts',
onwarn(warning, warn) {
if (
warning.code === 'CIRCULAR_DEPENDENCY' &&
warning.ids.some((id) => id.includes('luxon'))
) {
return
}
warn(warning)
},
plugins: [
typescript({
tsconfig: false,
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { AirtableScriptEnvironment as TestEnvironment } from './environment'
export { AirtableScriptEnvironment as default } from './environment'

import type { AirtableScriptGlobal } from './environment'
Expand Down

0 comments on commit ca32728

Please sign in to comment.