mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
bf170adee1
Add a new `@workflow/utils` package to extract common utility functions. - Created a new `@workflow/utils` package with common utility functions: - `parseDurationToDate()` - Parses duration strings, numbers, or Date objects - `withResolvers()` - Polyfill for `Promise.withResolvers()` - `once()` - Creates a lazily-evaluated, memoized function - `PromiseWithResolvers` - Type interface for promise resolvers - Moved these utility functions from the core package to the new utils package - Updated imports in the core package to use the new utils package - Added tests for the utility functions in the new package Signed-off-by: Nathan Rajlich <n@n8.io>
10 lines
176 B
JSON
10 lines
176 B
JSON
{
|
|
"extends": "@workflow/tsconfig/base.json",
|
|
"compilerOptions": {
|
|
"outDir": "./dist",
|
|
"rootDir": "./src"
|
|
},
|
|
"include": ["src"],
|
|
"exclude": ["**/*.test.ts"]
|
|
}
|