Sha256: 31cfb04d09d4d049eba6d8954c3fbdb95f63ae735b29a095407408b7b7045632
Contents?: true
Size: 592 Bytes
Versions: 12
Compression:
Stored size: 592 Bytes
Contents
// If `RBPRETTIER` is set, then this is being run from the `Prettier::run` ruby // method. In that case, we need to pull `prettier` from the node_modules // directly, as it's been shipped with the gem. /* istanbul ignore next */ const source = process.env.RBPRETTIER ? "../node_modules/prettier" : "prettier"; const prettier = require(source); // Just combine all the things into one big object so that we can import // whatever we need from prettier without having to dive too deeply. module.exports = Object.assign( {}, prettier.doc.builders, prettier.doc.utils, prettier.util );
Version data entries
12 entries across 12 versions & 1 rubygems