Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Commit

Permalink
fix: record used generators
Browse files Browse the repository at this point in the history
we will add a ls-generators command later to show the generators you have used
  • Loading branch information
egoist committed Nov 6, 2018
1 parent e981a3f commit b1ab201
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const isLocalPath = require('./utils/isLocalPath')
const SAOError = require('./SAOError')
const parseGenerator = require('./parseGenerator')
const updateCheck = require('./updateCheck')
const store = require('./store')

class SAO {
/**
Expand Down Expand Up @@ -73,6 +74,8 @@ class SAO {
config.updateCheck !== false && generator.type === 'npm'
})
}
// Keep the generator info
store.set(`generators.${generator.hash}`, generator)
}

if (generator.subGenerator) {
Expand Down

0 comments on commit b1ab201

Please sign in to comment.