Skip to content

Commit

Permalink
fix: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
osdevisnot committed Jan 4, 2021
1 parent 199b901 commit 627a969
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@rollup/plugin-node-resolve": "11.0.1",
"@rollup/plugin-replace": "2.3.4",
"@rollup/pluginutils": "4.1.0",
"@types/node": "14.14.16",
"@types/node": "14.14.19",
"@vercel/ncc": "0.24.1",
"babel-plugin-codegen": "4.0.1",
"babel-plugin-dev-expression": "0.2.2",
Expand All @@ -81,10 +81,10 @@
"rollup-plugin-node-globals": "1.4.0",
"semantic-release": "17.3.1",
"servor": "4.0.2",
"sort-package-json": "1.48.0",
"sort-package-json": "1.48.1",
"terser": "5.5.1",
"typescript": "^4.1.3",
"xo": "0.36.1",
"xo": "0.37.1",
"xo-quick": "0.0.6"
}
}
2 changes: 1 addition & 1 deletion src/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import pluginMacros from 'babel-plugin-macros'
import pluginCodegen from 'babel-plugin-codegen'

const hasPackage = (pkg, name) =>
// eslint-disable-next-line unicorn/no-reduce
// eslint-disable-next-line unicorn/no-array-reduce
['dependencies', 'devDependencies', 'peerDependencies'].reduce(
(last, current) => last || (pkg[current] && pkg[current][name]),
false
Expand Down
6 changes: 3 additions & 3 deletions src/init.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import merge from 'deepmerge'
import sort from 'sort-package-json'
import cli from '../package.json'
import { getDefaults, getTemplates } from './init-create'
import { error, info, warn } from './logger'
import { exec, exists, read, write, baseName } from './utils'
import { getDefaults, getTemplates } from './init-create.js'
import { error, info, warn } from './logger.js'
import { exec, exists, read, write, baseName } from './utils.js'

/**
* Source user's .gitconfig info (name & email)
Expand Down
10 changes: 5 additions & 5 deletions src/klap.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { rollup, watch } from 'rollup'
import { error, info, log } from './logger'
import { getOptions } from './options'
import { plugins, dtsPlugins } from './plugins'
import { exists, read } from './utils'
import { error, info, log } from './logger.js'
import { getOptions } from './options.js'
import { plugins, dtsPlugins } from './plugins.js'
import { exists, read } from './utils.js'

const defaultInputOptions = { inlineDynamicImports: true }
const defaultOutputOptions = { esModule: false, strict: false, freeze: false }
Expand Down Expand Up @@ -170,5 +170,5 @@ const klap = async (command, pkg) => {
}
}

export { init } from './init'
export { init } from './init.js'
export { klap, error, info, log, read }
2 changes: 1 addition & 1 deletion src/options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import getopts from 'getopts'
import { safePackageName } from './utils'
import { safePackageName } from './utils.js'

const getOptions = (pkg, command) => {
const {
Expand Down
2 changes: 1 addition & 1 deletion src/packages/servor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* A rollup plugin to start `servor` as build step
*/
import _servor from 'servor'
import { warn } from '../logger'
import { warn } from '../logger.js'

let singleton = false

Expand Down
2 changes: 1 addition & 1 deletion src/packages/sizeme.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
import gzip from 'gzip-size'
import prettyBytes from 'pretty-bytes'
import { info } from '../logger'
import { info } from '../logger.js'

export const sizeme = () => {
const showSize = (bundle) => {
Expand Down
2 changes: 1 addition & 1 deletion src/packages/terser.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { readFileSync, existsSync, writeFileSync } from 'fs'
import { codeFrameColumns } from '@babel/code-frame'
import { createFilter } from '@rollup/pluginutils'
import { minify } from 'terser'
import { error } from '../logger'
import { error } from '../logger.js'
import merge from 'deepmerge'

const transform = async (code, options) => {
Expand Down
8 changes: 4 additions & 4 deletions src/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import replace from '@rollup/plugin-replace'
import nodeGlobals from 'rollup-plugin-node-globals'
import babel from '@rollup/plugin-babel'

import { terser } from './packages/terser'
import { sizeme } from './packages/sizeme'
import { servor } from './packages/servor'
import { terser } from './packages/terser.js'
import { sizeme } from './packages/sizeme.js'
import { servor } from './packages/servor.js'

import { babelConfig } from './babel'
import { babelConfig } from './babel.js'

const plugins = (command, pkg, options) => {
const { extensions, presets, plugins } = babelConfig(command, pkg, options)
Expand Down

0 comments on commit 627a969

Please sign in to comment.