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

Version Path
prettier-1.2.3 src/prettier.js
prettier-1.2.2 src/prettier.js
prettier-1.2.1 src/prettier.js
prettier-1.2.0 src/prettier.js
prettier-1.1.0 src/prettier.js
prettier-1.0.1 src/prettier.js
prettier-1.0.0 src/prettier.js
prettier-1.0.0.pre.rc2 src/prettier.js
prettier-1.0.0.pre.rc1 src/prettier.js
prettier-0.22.0 src/prettier.js
prettier-0.21.0 src/prettier.js
prettier-0.20.1 src/prettier.js
prettier-0.20.0 src/prettier.js
prettier-0.19.1 src/prettier.js
prettier-0.19.0 src/prettier.js
prettier-0.18.2 src/prettier.js
prettier-0.18.1 src/prettier.js