mirror of
https://github.com/TECHNOFAB11/ergogen.git
synced 2025-12-11 23:50:05 +01:00
chore: allow footprints to import fs
This commit is contained in:
parent
6a45a4b9df
commit
6a27839b9a
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
const yaml = require('js-yaml')
|
||||
const jszip = require('jszip')
|
||||
const makerjs = require('makerjs')
|
||||
const fs = require('fs');
|
||||
|
||||
const u = require('./utils')
|
||||
const a = require('./assert')
|
||||
|
|
@ -10,7 +11,8 @@ const package_json = require('../package.json')
|
|||
|
||||
const fake_require = exports.fake_require = injection => name => {
|
||||
const dependencies = {
|
||||
makerjs
|
||||
makerjs,
|
||||
fs,
|
||||
}
|
||||
if (name.endsWith('package.json')) {
|
||||
return package_json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue