pugjs / babel-plugin-transform-react-pug

A plugin for transpiling pug templates to jsx
MIT License
808 stars 46 forks source link

Migrate to yarn and update dependencies #58

Closed ezhlobo closed 6 years ago

ezhlobo commented 6 years ago

Removed package-lock.json and added yarn.lock instead.

Even if there are outdated version in package.json, yarn installed up-to-date versions. The only problem is with flow@0.78, it returns me an error which I can not figure out:

Flow@0.78 error ``` $ yarn flow yarn run v1.6.0 $ flow Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ /private/tmp/flow/flowlib_316436e7/webassembly.js:11:52 Function [1] is not a polymorphic type. /private/tmp/flow/flowlib_316436e7/webassembly.js 8│ type ResultObject = { module: WebAssembly$Module, instance: WebAssembly$Instance }; 9│ 10│ // https://github.com/WebAssembly/design/blob/master/JS.md#exported-function-exotic-objects 11│ declare class ExportedFunctionExoticObject extends Function { │ ---------------------------------------------------^^^^^^^^-------------------------------- 12│ (): mixed; 13│ } 14│ scripts/babel-nodes.js [1] 1910│ type Function = ( │ -----^^^^^^^^------------------------------------------------------------------------------ ```
ezhlobo commented 6 years ago

@ForbesLindesay JFYI, I'm going to merge this today/tomorrow.