Skip to content

Commit

Permalink
feat: updated build and export
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaybrown committed Dec 11, 2019
1 parent 5672f60 commit d829e25
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/helpers/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.env
.env.*
.dist
dist/**/*
**/generated/**/*
9 changes: 8 additions & 1 deletion packages/helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
"description": "Utility library for sphere",
"version": "0.1.0",
"author": "Jason Brown",
"main": "index.ts",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"prepublishOnly": "yarn tsc"
},
"dependencies": {
"@timberio/node": "^0.35.0",
"@timberio/winston": "^0.35.0",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import * as winston from 'winston'
import { Timber } from '@timberio/node'
import { TimberTransport } from '@timberio/winston'

export type Logger = winston.Logger

export const logger = (apiKey: string, sourceKey: string) => {
const timber = new Timber(apiKey, sourceKey, { ignoreExceptions: false })
return winston.createLogger({
Expand Down
4 changes: 3 additions & 1 deletion packages/helpers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist"
"outDir": "dist",
"rootDir": "src",
"declaration": true
}
}

0 comments on commit d829e25

Please sign in to comment.