Skip to content

Commit

Permalink
fix: package didn't publish template root files (#6) (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
alemagio authored Jul 18, 2020
1 parent eb9ad44 commit bcffacd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions saofile.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ module.exports = {
return data
}
},
{
type: 'modify',
files: 'package.json',
handler(data, filepath) {
data.files = ['src']
return data
}
},
{
type: 'move',
patterns: {
Expand Down
2 changes: 1 addition & 1 deletion template/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict'

const app = require('src')
const app = require('./src')

module.exports = {}
1 change: 0 additions & 1 deletion template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"engines": {
"node": ">=10.0.0"
},
"files": ["src/"],
"scripts": {
"lint": "eslint . && <%= npmClient %> run lint:lockfile",
"lint:fix": "eslint . --fix",
Expand Down

0 comments on commit bcffacd

Please sign in to comment.