Skip to content

Commit

Permalink
build: fails build due to unresolvable modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 committed Mar 26, 2020
1 parent 463e496 commit 78ef910
Show file tree
Hide file tree
Showing 61 changed files with 863 additions and 265 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'sonarjs/cognitive-complexity': ['error', 20],
},
ignorePatterns: ['*.d.ts', 'dist/*', 'packages/**/node_modules/*'],
globals: {
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# compiled output
lib/
node_modules/
*.buildinfo
*.tsbuildinfo


# Logs
Expand Down
79 changes: 9 additions & 70 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nestjs-ogma",
"version": "2.0.5",
"name": "ogma",
"version": "0.0.0",
"description": "A NestJS module for the Ogma logger",
"author": {
"name": "Jay McDoniel",
Expand Down Expand Up @@ -87,9 +87,6 @@
"ts-jest": "^25.2.1",
"ts-loader": "^6.2.2",
"ts-node": "^8.8.1",
"tslint": "^6.1.0",
"tslint-config-prettier": "^1.18.0",
"tslint-sonarts": "^1.9.0",
"type-graphql": "^0.17.6",
"typescript": "^3.8.3",
"winston": "^3.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"scripts": {
"benchmark:all": "tsc ./benchmark/ogmaUsageTest.ts && node ./benchmark/ogmaUsageTest.js all && git add ./benchmark/benchmark.md",
"build": "rimraf lib && tsc -p tsconfig.build.json",
"build": "tsc -b tsconfig.build.json",
"commit": "git-cz",
"format": "prettier --write './src/**/*.ts'",
"lint": "eslint --ext .ts ./src/",
Expand Down
9 changes: 9 additions & 0 deletions packages/logger/src/enums/colors.enum.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export declare enum Color {
RED = 1,
GREEN = 2,
YELLOW = 3,
BLUE = 4,
MAGENTA = 5,
CYAN = 6,
WHITE = 7
}
13 changes: 13 additions & 0 deletions packages/logger/src/enums/colors.enum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/logger/src/enums/colors.enum.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/logger/src/enums/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './colors.enum';
export * from './log-level.enum';
8 changes: 8 additions & 0 deletions packages/logger/src/enums/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/logger/src/enums/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions packages/logger/src/enums/log-level.enum.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export declare enum LogLevel {
OFF = 0,
ALL = 1,
VERBOSE = 2,
DEBUG = 3,
LOG = 4,
WARN = 5,
ERROR = 6,
FATAL = 7,
INFO = 4,
FINE = 2,
SILLY = 1
}
17 changes: 17 additions & 0 deletions packages/logger/src/enums/log-level.enum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/logger/src/enums/log-level.enum.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/logger/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export { LogLevel } from './enums';
export * from './interfaces';
export * from './logger';
export * from './utils';
11 changes: 11 additions & 0 deletions packages/logger/src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/logger/src/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/logger/src/interfaces/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './ogma-options';
7 changes: 7 additions & 0 deletions packages/logger/src/interfaces/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/logger/src/interfaces/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions packages/logger/src/interfaces/ogma-options.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/// <reference types="node" />
import { LogLevel } from '../enums';
export interface OgmaOptions {
logLevel: keyof typeof LogLevel;
color: boolean;
stream: Partial<NodeJS.WritableStream | NodeJS.WriteStream> & Pick<NodeJS.WritableStream, 'write'>;
json: boolean;
context: string;
application: string;
[index: string]: any;
}
export declare const OgmaDefaults: OgmaOptions;
11 changes: 11 additions & 0 deletions packages/logger/src/interfaces/ogma-options.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/logger/src/interfaces/ogma-options.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/logger/src/logger/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './ogma';
7 changes: 7 additions & 0 deletions packages/logger/src/logger/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/logger/src/logger/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 78ef910

Please sign in to comment.