diff --git a/build_npm.ts b/build_npm.ts index 25414c5..6aef218 100644 --- a/build_npm.ts +++ b/build_npm.ts @@ -16,3 +16,4 @@ await build( // post build steps Deno.copyFileSync("LICENSE", "npm/LICENSE"); Deno.copyFileSync("README.md", "npm/README.md"); +Deno.writeTextFileSync("npm/script/index.js", "module.exports = promiseObject;", { append: true }); diff --git a/index.ts b/index.ts index a7ec493..39ddfa0 100644 --- a/index.ts +++ b/index.ts @@ -42,3 +42,5 @@ export async function promiseObject(obj: T): Promise> { return resolver(obj); } + +export default promiseObject;