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

2
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "@hibas123/utils", "name": "@hibas123/utils",
"version": "2.2.11", "version": "2.2.12",
"description": "Different Utilities, that are not worth own packages", "description": "Different Utilities, that are not worth own packages",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "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); console.log("Changing meta.version from", meta.version, "to", pkg.version);
meta.version = pkg.version || meta.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.js", "esm/mod.js");
await Deno.copyFile("esm/index.d.ts", "esm/mod.d.ts"); await Deno.copyFile("esm/index.d.ts", "esm/mod.d.ts");

View File

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