Skip to content

Commit

Permalink
feat: improve packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Apr 2, 2018
1 parent 91065e4 commit 158e8ef
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/basic.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const consola = require('..')
const consola = require('../src/cjs')

consola.start('Starting build')

Expand Down
2 changes: 1 addition & 1 deletion examples/json.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const consola = require('..')
const consola = require('../src/cjs')

consola.clear().add(new consola.JSONReporter())

Expand Down
2 changes: 1 addition & 1 deletion examples/winston.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const consola = require('..')
const consola = require('../src/cjs')
const winston = require('winston')

const wLogger = winston.createLogger({
Expand Down
8 changes: 0 additions & 8 deletions index.js

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "consola",
"version": "1.1.4",
"description": "Elegant Console Logger",
"main": "index.js",
"main": "./dist/consola.cjs.js",
"module": "./src/index.js",
"scripts": {
"build": "bili",
"test": "true",
Expand Down
1 change: 1 addition & 0 deletions src/cjs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('esm')(module, { mode: 'all' })('./index.js').default

0 comments on commit 158e8ef

Please sign in to comment.