diff --git a/src/bench.ts b/TEMP/bench.ts similarity index 100% rename from src/bench.ts rename to TEMP/bench.ts diff --git a/migration.md b/TEMP/migration.md similarity index 100% rename from migration.md rename to TEMP/migration.md diff --git a/migration.ts b/TEMP/migration.ts similarity index 97% rename from migration.ts rename to TEMP/migration.ts index 288de08..89e5424 100644 --- a/migration.ts +++ b/TEMP/migration.ts @@ -1,5 +1,5 @@ import * as v4 from 'npm:diary@^0.4'; -import * as v5 from './src/mod.ts'; +import * as v5 from './mod.ts'; let v4Events: any[] = []; let v5Events: any[] = []; diff --git a/deno.json b/deno.json index 9bd3a8d..3014278 100644 --- a/deno.json +++ b/deno.json @@ -1,16 +1,17 @@ { "version": "0.5.0", "name": "@mr/log", - "exports": { - ".": "./src/mod.ts", - "./using": "./src/using.ts", - "./stream": "./src/stream.ts", - "./output.console": "./src/output.console.ts", - "./utils": "./src/utils.ts" - }, + "lock": false, "tasks": { "build": "deno run -A scripts/build.ts" }, + "exports": { + ".": "./mod.ts", + "./using": "./using.ts", + "./stream": "./stream.ts", + "./output.console": "./output.console.ts", + "./utils": "./utils.ts" + }, "imports": { "@deno/dnt": "jsr:@deno/dnt@^0.41", "@std/assert": "jsr:@std/assert@^0.224.0", @@ -40,12 +41,12 @@ ], "publish": { "include": [ - "src/*.ts", + "*.ts", "license", "readme.md" ], "exclude": [ - "src/*.test.ts" + "*.test.ts" ] } } diff --git a/deno.lock b/deno.lock deleted file mode 100644 index 649b7dc..0000000 --- a/deno.lock +++ /dev/null @@ -1,281 +0,0 @@ -{ - "version": "3", - "packages": { - "specifiers": { - "jsr:@deno/cache-dir@^0.8.0": "jsr:@deno/cache-dir@0.8.0", - "jsr:@deno/dnt@^0.41": "jsr:@deno/dnt@0.41.1", - "jsr:@deno/graph@^0.69.7": "jsr:@deno/graph@0.69.10", - "jsr:@std/assert@^0.218.2": "jsr:@std/assert@0.218.2", - "jsr:@std/assert@^0.224.0": "jsr:@std/assert@0.224.0", - "jsr:@std/async@^0.224.0": "jsr:@std/async@0.224.0", - "jsr:@std/bytes@^0.218.2": "jsr:@std/bytes@0.218.2", - "jsr:@std/fmt@^0.218.2": "jsr:@std/fmt@0.218.2", - "jsr:@std/fmt@^0.224.0": "jsr:@std/fmt@0.224.0", - "jsr:@std/fs@^0.218.2": "jsr:@std/fs@0.218.2", - "jsr:@std/internal@^0.224.0": "jsr:@std/internal@0.224.0", - "jsr:@std/io@^0.218.2": "jsr:@std/io@0.218.2", - "jsr:@std/path@^0.218.2": "jsr:@std/path@0.218.2", - "jsr:@std/testing@^0.224.0": "jsr:@std/testing@0.224.0", - "npm:@faker-js/faker": "npm:@faker-js/faker@8.4.1", - "npm:@ts-morph/bootstrap@0.22": "npm:@ts-morph/bootstrap@0.22.0", - "npm:code-block-writer@^13.0.1": "npm:code-block-writer@13.0.1", - "npm:diary@^0.4": "npm:diary@0.4.5", - "npm:grfn": "npm:grfn@2.0.0", - "npm:kleur@^4": "npm:kleur@4.1.5" - }, - "jsr": { - "@deno/cache-dir@0.8.0": { - "integrity": "e87e80a404958f6350d903e6238b72afb92468378b0b32111f7a1e4916ac7fe7", - "dependencies": [ - "jsr:@deno/graph@^0.69.7", - "jsr:@std/fs@^0.218.2", - "jsr:@std/io@^0.218.2" - ] - }, - "@deno/dnt@0.41.1": { - "integrity": "8746a773e031ae19ef43d0eece850217b76cf1d0118fdd8e059652d7023d4aff", - "dependencies": [ - "jsr:@deno/cache-dir@^0.8.0", - "jsr:@std/fmt@^0.218.2", - "jsr:@std/fs@^0.218.2", - "jsr:@std/path@^0.218.2", - "npm:@ts-morph/bootstrap@0.22", - "npm:code-block-writer@^13.0.1" - ] - }, - "@deno/graph@0.69.10": { - "integrity": "38fe22ac5686f6ece5daeec5a4df65c6314d7d32adcc33f77917a13cfaffa26f" - }, - "@std/assert@0.218.2": { - "integrity": "7f0a5a1a8cf86607cd6c2c030584096e1ffad27fc9271429a8cb48cfbdee5eaf" - }, - "@std/assert@0.224.0": { - "integrity": "8643233ec7aec38a940a8264a6e3eed9bfa44e7a71cc6b3c8874213ff401967f", - "dependencies": [ - "jsr:@std/fmt@^0.224.0", - "jsr:@std/internal@^0.224.0" - ] - }, - "@std/async@0.224.0": { - "integrity": "b6da423eeafbd0003fe88d950e069368c6a156f8b5293b7adbd9c8903a8f8d66", - "dependencies": [ - "jsr:@std/assert@^0.224.0" - ] - }, - "@std/bytes@0.218.2": { - "integrity": "91fe54b232dcca73856b79a817247f4a651dbb60d51baafafb6408c137241670" - }, - "@std/fmt@0.218.2": { - "integrity": "99526449d2505aa758b6cbef81e7dd471d8b28ec0dcb1491d122b284c548788a" - }, - "@std/fmt@0.224.0": { - "integrity": "e20e9a2312a8b5393272c26191c0a68eda8d2c4b08b046bad1673148f1d69851" - }, - "@std/fs@0.218.2": { - "integrity": "dd9431453f7282e8c577cc22c9e6d036055a9a980b5549f887d6012969fabcca", - "dependencies": [ - "jsr:@std/assert@^0.218.2", - "jsr:@std/path@^0.218.2" - ] - }, - "@std/internal@0.224.0": { - "integrity": "afc50644f9cdf4495eeb80523a8f6d27226b4b36c45c7c195dfccad4b8509291" - }, - "@std/io@0.218.2": { - "integrity": "c64fbfa087b7c9d4d386c5672f291f607d88cb7d44fc299c20c713e345f2785f", - "dependencies": [ - "jsr:@std/bytes@^0.218.2" - ] - }, - "@std/path@0.218.2": { - "integrity": "b568fd923d9e53ad76d17c513e7310bda8e755a3e825e6289a0ce536404e2662", - "dependencies": [ - "jsr:@std/assert@^0.218.2" - ] - }, - "@std/testing@0.224.0": { - "integrity": "371b8a929aa7132240d5dd766a439be8f780ef5c176ab194e0bcab72370c761e", - "dependencies": [ - "jsr:@std/assert@^0.224.0" - ] - } - }, - "npm": { - "@faker-js/faker@8.4.1": { - "integrity": "sha512-XQ3cU+Q8Uqmrbf2e0cIC/QN43sTBSC8KF12u29Mb47tWrt2hAgBXSgpZMj4Ao8Uk0iJcU99QsOCaIL8934obCg==", - "dependencies": {} - }, - "@nodelib/fs.scandir@2.1.5": { - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dependencies": { - "@nodelib/fs.stat": "@nodelib/fs.stat@2.0.5", - "run-parallel": "run-parallel@1.2.0" - } - }, - "@nodelib/fs.stat@2.0.5": { - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dependencies": {} - }, - "@nodelib/fs.walk@1.2.8": { - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dependencies": { - "@nodelib/fs.scandir": "@nodelib/fs.scandir@2.1.5", - "fastq": "fastq@1.17.1" - } - }, - "@ts-morph/bootstrap@0.22.0": { - "integrity": "sha512-MI5q7pid4swAlE2lcHwHRa6rcjoIMyT6fy8uuZm8BGg7DHGi/H5bQ0GMZzbk3N0r/LfStMdOYPkl+3IwvfIQ2g==", - "dependencies": { - "@ts-morph/common": "@ts-morph/common@0.22.0" - } - }, - "@ts-morph/common@0.22.0": { - "integrity": "sha512-HqNBuV/oIlMKdkLshXd1zKBqNQCsuPEsgQOkfFQ/eUKjRlwndXW1AjN9LVkBEIukm00gGXSRmfkl0Wv5VXLnlw==", - "dependencies": { - "fast-glob": "fast-glob@3.3.2", - "minimatch": "minimatch@9.0.4", - "mkdirp": "mkdirp@3.0.1", - "path-browserify": "path-browserify@1.0.1" - } - }, - "balanced-match@1.0.2": { - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dependencies": {} - }, - "brace-expansion@2.0.1": { - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "balanced-match@1.0.2" - } - }, - "braces@3.0.2": { - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dependencies": { - "fill-range": "fill-range@7.0.1" - } - }, - "code-block-writer@13.0.1": { - "integrity": "sha512-c5or4P6erEA69TxaxTNcHUNcIn+oyxSRTOWV+pSYF+z4epXqNvwvJ70XPGjPNgue83oAFAPBRQYwpAJ/Hpe/Sg==", - "dependencies": {} - }, - "diary@0.4.5": { - "integrity": "sha512-dUtG/AVG5bt9Mi+23TgTvjZ0NDJaszjs1GpYooM5cbEzk2xoqdvxCOlVw0xkenQXZw/DFxp23tj5VkP6YmlRmw==", - "dependencies": {} - }, - "fast-glob@3.3.2": { - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dependencies": { - "@nodelib/fs.stat": "@nodelib/fs.stat@2.0.5", - "@nodelib/fs.walk": "@nodelib/fs.walk@1.2.8", - "glob-parent": "glob-parent@5.1.2", - "merge2": "merge2@1.4.1", - "micromatch": "micromatch@4.0.5" - } - }, - "fastq@1.17.1": { - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", - "dependencies": { - "reusify": "reusify@1.0.4" - } - }, - "fill-range@7.0.1": { - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dependencies": { - "to-regex-range": "to-regex-range@5.0.1" - } - }, - "glob-parent@5.1.2": { - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "is-glob@4.0.3" - } - }, - "grfn@2.0.0": { - "integrity": "sha512-5k67rz3bLrnm4dD9TJyaEe++Bs4g/CtVXzpopddPVeMcleGN8Ss4LRaJxErKBT1IpbW5y4su8plL5Y3wNPZ+Fg==", - "dependencies": { - "type-fest": "type-fest@4.18.2" - } - }, - "is-extglob@2.1.1": { - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dependencies": {} - }, - "is-glob@4.0.3": { - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dependencies": { - "is-extglob": "is-extglob@2.1.1" - } - }, - "is-number@7.0.0": { - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dependencies": {} - }, - "kleur@4.1.5": { - "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", - "dependencies": {} - }, - "merge2@1.4.1": { - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dependencies": {} - }, - "micromatch@4.0.5": { - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dependencies": { - "braces": "braces@3.0.2", - "picomatch": "picomatch@2.3.1" - } - }, - "minimatch@9.0.4": { - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "dependencies": { - "brace-expansion": "brace-expansion@2.0.1" - } - }, - "mkdirp@3.0.1": { - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "dependencies": {} - }, - "path-browserify@1.0.1": { - "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", - "dependencies": {} - }, - "picomatch@2.3.1": { - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dependencies": {} - }, - "queue-microtask@1.2.3": { - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dependencies": {} - }, - "reusify@1.0.4": { - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dependencies": {} - }, - "run-parallel@1.2.0": { - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dependencies": { - "queue-microtask": "queue-microtask@1.2.3" - } - }, - "to-regex-range@5.0.1": { - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dependencies": { - "is-number": "is-number@7.0.0" - } - }, - "type-fest@4.18.2": { - "integrity": "sha512-+suCYpfJLAe4OXS6+PPXjW3urOS4IoP9waSiLuXfLgqZODKw/aWwASvzqE886wA0kQgGy0mIWyhd87VpqIy6Xg==", - "dependencies": {} - } - } - }, - "remote": {}, - "workspace": { - "dependencies": [ - "jsr:@deno/dnt@^0.41", - "jsr:@std/assert@^0.224.0", - "jsr:@std/async@^0.224.0", - "jsr:@std/testing@^0.224.0" - ] - } -} diff --git a/examples/_journey.ts b/examples/_journey.ts index 244ca28..81b33dc 100644 --- a/examples/_journey.ts +++ b/examples/_journey.ts @@ -1,4 +1,4 @@ -import type { Diary } from '../src/mod.ts'; +import type { Diary } from '../mod.ts'; import { delay } from '@std/async'; import { faker } from 'npm:@faker-js/faker'; diff --git a/examples/example.ts b/examples/example.ts index f6cd532..9ab134f 100644 --- a/examples/example.ts +++ b/examples/example.ts @@ -1,6 +1,6 @@ -import { type Diary, diary, type OnEmitFn } from '../src/mod.ts'; -import { browser, plain, pretty } from '../src/output.console.ts'; -import { interpolate } from '../src/utils.ts'; +import { type Diary, diary, type OnEmitFn } from '../mod.ts'; +import { browser, plain, pretty } from '../output.console.ts'; +import { interpolate } from '../utils.ts'; class User { id = 123; diff --git a/examples/stream.ts b/examples/stream.ts index 0ac4406..fca6a6a 100644 --- a/examples/stream.ts +++ b/examples/stream.ts @@ -1,6 +1,6 @@ -import type { LogEvent } from '../src/mod.ts'; -import { diary } from '../src/stream.ts'; -import { interpolate } from '../src/utils.ts'; +import type { LogEvent } from '../mod.ts'; +import { diary } from '../stream.ts'; +import { interpolate } from '../utils.ts'; import { log_journey } from './_journey.ts'; let log_file = await Deno.open('./log.log', { diff --git a/src/mod.test.ts b/mod.test.ts similarity index 100% rename from src/mod.test.ts rename to mod.test.ts diff --git a/src/mod.ts b/mod.ts similarity index 100% rename from src/mod.ts rename to mod.ts diff --git a/src/output.console.test.ts b/output.console.test.ts similarity index 100% rename from src/output.console.test.ts rename to output.console.test.ts diff --git a/src/output.console.ts b/output.console.ts similarity index 100% rename from src/output.console.ts rename to output.console.ts diff --git a/scripts/build.ts b/scripts/build.ts index bbb0515..680b822 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -4,11 +4,11 @@ await emptyDir('./npm'); await build({ entryPoints: [ - './src/mod.ts', - './src/stream.ts', - './src/using.ts', - './src/output.console.ts', - './src/utils.ts', + './mod.ts', + './stream.ts', + './using.ts', + './output.console.ts', + './utils.ts', ], outDir: './npm', shims: { diff --git a/src/stream.test.ts b/stream.test.ts similarity index 100% rename from src/stream.test.ts rename to stream.test.ts diff --git a/src/stream.ts b/stream.ts similarity index 100% rename from src/stream.ts rename to stream.ts diff --git a/src/using.test.ts b/using.test.ts similarity index 100% rename from src/using.test.ts rename to using.test.ts diff --git a/src/using.ts b/using.ts similarity index 100% rename from src/using.ts rename to using.ts diff --git a/src/utils.test.ts b/utils.test.ts similarity index 100% rename from src/utils.test.ts rename to utils.test.ts diff --git a/src/utils.ts b/utils.ts similarity index 100% rename from src/utils.ts rename to utils.ts