Skip to content

Commit

Permalink
🚧 WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr committed May 27, 2024
1 parent 7360146 commit 8667c8d
Show file tree
Hide file tree
Showing 19 changed files with 23 additions and 303 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion migration.ts → TEMP/migration.ts
Original file line number Diff line number Diff line change
@@ -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[] = [];
Expand Down
19 changes: 10 additions & 9 deletions deno.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -40,12 +41,12 @@
],
"publish": {
"include": [
"src/*.ts",
"*.ts",
"license",
"readme.md"
],
"exclude": [
"src/*.test.ts"
"*.test.ts"
]
}
}
281 changes: 0 additions & 281 deletions deno.lock

This file was deleted.

2 changes: 1 addition & 1 deletion examples/_journey.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
6 changes: 3 additions & 3 deletions examples/example.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
6 changes: 3 additions & 3 deletions examples/stream.ts
Original file line number Diff line number Diff line change
@@ -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', {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8667c8d

Please sign in to comment.