Sha256: cd2dacd8d74392db84ffb6d9aa4916cb329c5ef67005db7b20d4f4a510eb43e8
Contents?: true
Size: 619 Bytes
Versions: 8
Compression:
Stored size: 619 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. const source = process.env.RBPRETTIER ? "../node_modules/prettier" : "prettier"; // eslint-disable-next-line import/no-dynamic-require 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
8 entries across 8 versions & 1 rubygems