Skip to content

Commit

Permalink
Merge pull request #67 from richardeschloss/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
richardeschloss authored Sep 18, 2020
2 parents 007c3e2 + fb0d8b2 commit dd5f15e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file.

## [2.0.9] - 2020-09-18
### Fixed
- Fixed postinstall copying of sample stories

## [2.0.8] - 2020-08-28
### Fixed
- Ordering issue of stories
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-stories",
"version": "2.0.8",
"version": "2.0.9",
"description": "Nuxt stories module -- Painless storybooking for Nuxt",
"author": "Richard Schloss",
"main": "lib/stories.module.js",
Expand Down
2 changes: 1 addition & 1 deletion postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const resolvedStoriesDir = pResolve(destDir, 'stories')

if (!existsSync(resolvedStoriesDir)) {
mkdirSync(resolvedStoriesDir)
gentlyCopy(storiesDir, resolvedStoriesDir, { overwrite: false })
gentlyCopy(`${storiesDir}/*`, resolvedStoriesDir, { overwrite: false })
}

const otherDirs = [
Expand Down
1 change: 1 addition & 0 deletions test/specs/Postinstall.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ test('Files are copied over ok', async (t) => {
t.true(existsSync(pResolve(process.env.INIT_CWD, 'components')))
t.true(existsSync(pResolve(process.env.INIT_CWD, 'layouts/stories.vue')))
t.true(existsSync(pResolve(process.env.INIT_CWD, 'store/index.js')))
t.true(existsSync(pResolve(process.env.INIT_CWD, 'stories/en')))
exec(`rm -rf ./tmp`)
})

0 comments on commit dd5f15e

Please sign in to comment.