slurmulon / hazy Goto Github PK
View Code? Open in Web Editor NEW:partly_sunny: Lazy JSON fixtures in Node
License: MIT License
:partly_sunny: Lazy JSON fixtures in Node
License: MIT License
I'm getting the following error when locally installing hazy:
> [email protected] build /var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf
> node ./node_modules/.bin/babel src --out-dir lib
ReferenceError: [BABEL] src/hazy.js: Unknown option: /var/www/my-project/.babelrc.presets
at Logger.error (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/logger.js:58:11)
at OptionManager.mergeOptions (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126:29)
at OptionManager.addConfig (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/options/option-manager.js:107:10)
at OptionManager.findConfigs (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/options/option-manager.js:168:35)
at OptionManager.init (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/options/option-manager.js:229:12)
at File.initOptions (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/index.js:147:75)
at new File (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/index.js:137:22)
at Pipeline.transform (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/pipeline.js:164:16)
at Object.exports.transform (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel/lib/babel/util.js:40:22)
at Object.exports.compile (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel/lib/babel/util.js:49:20)
It looks like it's because I'm using a newer version of Babel that has an option in my .babelrc that isn't supported by Babel 5. Do you think it would make sense to publish the lib dir and remove the preinstall
script? It looks like you already have the build as part of prepublish
, but the lib dir isn't in the npm package since it's in .gitignore.
Happy to submit a PR if you want!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.