Skip to content

Commit

Permalink
update generate-partial-cache script
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Aug 29, 2024
1 parent fe35b23 commit 50f1d78
Show file tree
Hide file tree
Showing 3 changed files with 456 additions and 54 deletions.
3 changes: 2 additions & 1 deletion bin/generate-partial-cache.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const FileSet = require('file-set')
const fs = require('fs')
const path = require('path')
const util = require('util')

const fileSet = new FileSet()

Expand All @@ -13,7 +14,7 @@ async function start () {
fs.readFileSync(file, 'utf8') || ''
)
}
console.log('module.exports = ' + JSON.stringify(Array.from(map), null, ' '))
console.log('module.exports = ' + util.inspect(Array.from(map), { compact: false, maxStringLength: Infinity, maxArrayLength: Infinity }))
}
start()

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"partials"
],
"scripts": {
"test": "75lb-nature test-runner test/api.js test/grouping.js test/parseType.js test/plugin.js test/ddata/children.js test/ddata/globals.js test/ddata/linkTo.js test/ddata/list.js test/ddata/orphans.js test/ddata/parseLink.js test/ddata/return-sig.js test/ddata/type-link.js"
"test": "75lb-nature test-runner test/api.js test/grouping.js test/parseType.js test/plugin.js test/ddata/children.js test/ddata/globals.js test/ddata/linkTo.js test/ddata/list.js test/ddata/orphans.js test/ddata/parseLink.js test/ddata/return-sig.js test/ddata/type-link.js",
"partials": "node bin/generate-partial-cache.js > partials/partial-cache.js"
},
"dependencies": {
"array-back": "^6.2.2",
Expand Down
Loading

0 comments on commit 50f1d78

Please sign in to comment.