Skip to content

Commit

Permalink
fix: only import dasherize from underscore-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 26, 2020
1 parent c75ff20 commit f98f211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/minimap-plugin-generator-element.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

import _ from 'underscore-plus'
import { dasherize } from 'underscore-plus'
import fs from 'fs-plus'
import path from 'path'
import { BufferedProcess } from 'atom'
Expand Down Expand Up @@ -107,7 +107,7 @@ class MinimapPluginGeneratorElement {

getPackagePath () {
const packagePath = this.editor.getText()
const packageName = _.dasherize(path.basename(packagePath))
const packageName = dasherize(path.basename(packagePath))

return path.join(path.dirname(packagePath), packageName)
}
Expand Down

0 comments on commit f98f211

Please sign in to comment.