Skip to content

Commit

Permalink
fix: wrong import path (close: #937)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Oct 17, 2018
1 parent b084114 commit 1dd1b55
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions packages/@vuepress/core/lib/prepare/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
* Module dependencies.
*/

const slugify = require('../../../markdown/lib/slugify')
const { inferDate, DATE_RE } = require('../util/index')
const { extractHeaders, fs, path, fileToPath, parseFrontmatter, getPermalink, inferTitle } = require('@vuepress/shared-utils')
const { extractHeaders, fs, path, fileToPath, parseFrontmatter, getPermalink, inferTitle, slugify } = require('@vuepress/shared-utils')

/**
* Expose Page class.
Expand Down
2 changes: 1 addition & 1 deletion packages/@vuepress/markdown/__tests__/slugify.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Md } from './util'
import anchor from 'markdown-it-anchor'
import slugify from '../lib/slugify.js'
import slugify from '../../shared-utils/lib/slugify.js'

const mdS = Md().use(anchor, {
slugify,
Expand Down
3 changes: 1 addition & 2 deletions packages/@vuepress/markdown/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ const snippetPlugin = require('./snippet')
const emojiPlugin = require('markdown-it-emoji')
const anchorPlugin = require('markdown-it-anchor')
const tocPlugin = require('markdown-it-table-of-contents')
const _slugify = require('./slugify')
const { parseHeaders } = require('@vuepress/shared-utils')
const { parseHeaders, slugify: _slugify } = require('@vuepress/shared-utils')

/**
* Create markdown by config.
Expand Down
1 change: 0 additions & 1 deletion packages/@vuepress/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
],
"dependencies": {
"@vuepress/shared-utils": "^1.0.0-alpha.11",
"diacritics": "^1.3.0",
"markdown-it": "^8.4.1",
"markdown-it-anchor": "^5.0.2",
"markdown-it-chain": "^1.2.1",
Expand Down
1 change: 1 addition & 0 deletions packages/@vuepress/shared-utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ exports.globby = require('globby')
exports.hash = require('hash-sum')

exports.fallback = require('./lib/fallback')
exports.slugify = require('./lib/slugify')
File renamed without changes.
3 changes: 2 additions & 1 deletion packages/@vuepress/shared-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"fs-extra": "^5.0.0",
"globby": "^8.0.1",
"hash-sum": "^1.0.2",
"upath": "^1.1.0"
"upath": "^1.1.0",
"diacritics": "^1.3.0"
},
"author": "ULIVZ <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit 1dd1b55

Please sign in to comment.