Bundled Plugins: fix build issues with DirectInput (#23640)

* pass query error

* and the root

* not optional

* building bundled plugin

* missing file

* remove other branch

* fix prettier
This commit is contained in:
Ryan McKinley 2020-04-18 22:05:25 -07:00 committed by GitHub
parent 88ec7e097f
commit 1e03bb2895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 4 deletions

View File

@ -21,7 +21,7 @@ const bundleManagedPluginsRunner: TaskRunner<BundeManagedOptions> = async () =>
process.chdir(`${MANAGED_PLUGINS_PATH}/${scope}/${plugin}`);
try {
console.log(`[${scope}]: ${plugin} building...`);
await execa('yarn', ['dev']);
await execa('yarn', ['build']);
console.log(`[${scope}]: ${plugin} bundled`);
} catch (e) {
console.log(e.stdout);

View File

@ -4,3 +4,6 @@ coverage
# Ignore external git configs
external
# this file is added automatically
.prettierrc.js

View File

@ -1,3 +1,3 @@
# Direct Input Data Source - Native Plugin
# Direct Input Data Source - Bundled Plugin
This data source lets you define results directly in CSV. The values are stored either in a shared data source, or directly in panels.

View File

@ -0,0 +1,8 @@
// This file is needed because it is used by vscode and other tools that
// call `jest` directly. However, unless you are doing anything special
// do not edit this file
const standard = require('@grafana/toolkit/src/config/jest.plugin.config');
// This process will use the same config that `yarn test` is using
module.exports = standard.jestConfig();

View File

@ -1,6 +1,6 @@
{
"name": "@grafana-plugins/input-datasource",
"version": "6.6.0-pre",
"version": "7.0.0-pre.0",
"description": "Input Datasource",
"private": true,
"repository": {

View File

@ -4,6 +4,6 @@
"compilerOptions": {
"rootDir": "./src",
"baseUrl": "./src",
"typeRoots": ["./node_modules/@types"]
"typeRoots": ["./node_modules/@types", "../../../node_modules/@types"]
}
}