mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
* First pass at showing data override dots * Added test * Adding override rule dots * Added unit test * Minor changes * Update public/app/features/dashboard/components/PanelEditor/OptionsPaneItemDescriptor.tsx Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com> * Fixed ts issues * review feedback changes * skipp broken e2e test Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
21 lines
624 B
JavaScript
Executable File
21 lines
624 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const {existsSync} = require(`fs`);
|
|
const {createRequire, createRequireFromPath} = require(`module`);
|
|
const {resolve} = require(`path`);
|
|
|
|
const relPnpApiPath = "../../../.pnp.cjs";
|
|
|
|
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
|
|
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
|
|
|
|
if (existsSync(absPnpApiPath)) {
|
|
if (!process.versions.pnp) {
|
|
// Setup the environment to be able to require prettier/index.js
|
|
require(absPnpApiPath).setup();
|
|
}
|
|
}
|
|
|
|
// Defer to the real prettier/index.js your application uses
|
|
module.exports = absRequire(`prettier/index.js`);
|