Sha256: ca0a60ead3cdb938b72d6676b0840aa4b5aaedce5e361f6a939641217e119ff8

Contents?: true

Size: 710 Bytes

Versions: 6

Compression:

Stored size: 710 Bytes

Contents

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// 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 */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const source = require(process.env.RBPRETTIER
    ? "../node_modules/prettier"
    : "prettier");
// Cramming everything together to make it simpler to pull in all of the right
// utilities and builders.
const builders = source.doc.builders;
const exported = { ...builders, ...source.doc.utils, ...source.util };
exports.default = exported;

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
prettier-2.1.0 dist/prettier.js
prettier-2.0.0 dist/prettier.js
prettier-2.0.0.pre.rc4 dist/prettier.js
prettier-2.0.0.pre.rc3 dist/prettier.js
prettier-2.0.0.pre.rc2 dist/prettier.js
prettier-2.0.0.pre.rc1 dist/prettier.js