Adding missing exports

This commit is contained in:
Fabian Stamm 2020-10-18 01:12:40 +02:00
parent ef423a947a
commit 799651d37f
5 changed files with 17 additions and 7 deletions

View File

@ -1,13 +1,17 @@
{
"name": "utils",
"version": "2.2.11",
"version": "2.2.12",
"description": "Some helpful utility classes and functions",
"author": "Fabian Stamm <dev@fabianstamm.de>",
"contributors": [],
"root": "./esm/",
"files": ["**/*.ts", "**/*.js", "README.md"],
"files": [
"**/*.ts",
"**/*.js",
"README.md"
],
"hooks": {
"prepublish": "pre.js"
},
"readme": "readme.md"
}
}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/utils",
"version": "2.2.10",
"version": "2.2.11",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/utils",
"version": "2.2.11",
"version": "2.2.12",
"description": "Different Utilities, that are not worth own packages",
"main": "lib/index.js",
"types": "lib/index.d.ts",

2
pre.js
View File

@ -8,7 +8,7 @@ const meta = await rjson("meta.json");
console.log("Changing meta.version from", meta.version, "to", pkg.version);
meta.version = pkg.version || meta.version;
// await wjson("meta.json", meta);
await wjson("meta.json", meta);
await Deno.copyFile("esm/index.js", "esm/mod.js");
await Deno.copyFile("esm/index.d.ts", "esm/mod.d.ts");

View File

@ -1,11 +1,17 @@
import Lock, { Release } from "./lock.js";
import Observable, {
ObserverCallback,
ObserverCallbackCollect,
ObservableInterface,
} from "./observable.js";
import AwaitStore from "./awaiter.js";
import AsyncIteratorFromCB from "./asynciter.js";
import Signal from "./signal.js";
export type {
Release,
ObserverCallback,
@ -13,4 +19,4 @@ export type {
ObservableInterface,
};
export { Lock, Observable, AwaitStore };
export { Lock, Observable, AwaitStore, AsyncIteratorFromCB, Signal };