Sha256: 116040bb00bf5eccfab0506ab85f5e9b7f77cb04b8c1c034a697a0eea429c93c
Contents?: true
Size: 565 Bytes
Versions: 17
Compression:
Stored size: 565 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"; 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
17 entries across 17 versions & 1 rubygems