@grafana/create-plugin 1.5.1-canary.265.798fd2f.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,33 @@
1
+ # v1.5.2 (Thu Jun 01 2023)
2
+
3
+ :tada: This release contains work from a new contributor! :tada:
4
+
5
+ Thank you, Alex Simonok ([@asimonok](https://github.com/asimonok)), for all your work!
6
+
7
+ #### 🐛 Bug Fix
8
+
9
+ - Create Plugin: Fix Code Coverage for JSX files [#271](https://github.com/grafana/plugin-tools/pull/271) ([@asimonok](https://github.com/asimonok))
10
+
11
+ #### Authors: 1
12
+
13
+ - Alex Simonok ([@asimonok](https://github.com/asimonok))
14
+
15
+ ---
16
+
17
+ # v1.5.1 (Wed May 31 2023)
18
+
19
+ #### 🐛 Bug Fix
20
+
21
+ - Create Plugin: Fix lint:fix not passing args with NPM [#265](https://github.com/grafana/plugin-tools/pull/265) ([@jackw](https://github.com/jackw))
22
+ - Scripts: Add error-handling to generator scripts [#257](https://github.com/grafana/plugin-tools/pull/257) ([@leventebalogh](https://github.com/leventebalogh))
23
+
24
+ #### Authors: 2
25
+
26
+ - Jack Westbrook ([@jackw](https://github.com/jackw))
27
+ - Levente Balogh ([@leventebalogh](https://github.com/leventebalogh))
28
+
29
+ ---
30
+
1
31
  # v1.5.0 (Wed May 24 2023)
2
32
 
3
33
  :tada: This release contains work from a new contributor! :tada:
@@ -106,7 +106,8 @@ function default_1(plop) {
106
106
  packageManagerName: packageManagerName,
107
107
  packageManagerInstallCmd: packageManagerInstallCmd,
108
108
  packageManagerVersion: packageManagerVersion,
109
- isAppType: isAppType
109
+ isAppType: isAppType,
110
+ isNPM: packageManagerName === 'npm'
110
111
  };
111
112
  var commonActions = getActionsForTemplateFolder({
112
113
  folderPath: constants_1.TEMPLATE_PATHS.common,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "1.5.1-canary.265.798fd2f.0",
3
+ "version": "1.5.2",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "directory": "packages/create-plugin",
@@ -66,5 +66,5 @@
66
66
  "engines": {
67
67
  "node": ">=16"
68
68
  },
69
- "gitHead": "798fd2f084ea640269fa641d767c1b8be744f4d2"
69
+ "gitHead": "f5e88244a1fa79e122bf30e0a0c6dfe5f35a9d1b"
70
70
  }
@@ -95,6 +95,7 @@ export default function (plop: NodePlopAPI) {
95
95
  packageManagerInstallCmd,
96
96
  packageManagerVersion,
97
97
  isAppType,
98
+ isNPM: packageManagerName === 'npm'
98
99
  };
99
100
  // Copy over files that are shared between plugins types
100
101
  const commonActions = getActionsForTemplateFolder({
@@ -16,4 +16,5 @@ export type TemplateData = {
16
16
  packageManagerInstallCmd: string;
17
17
  packageManagerVersion: string;
18
18
  isAppType: boolean;
19
+ isNPM: boolean;
19
20
  };
@@ -25,7 +25,7 @@ module.exports = {
25
25
  '^.+\\.(t|j)sx?$': [
26
26
  '@swc/jest',
27
27
  {
28
- sourceMaps: true,
28
+ sourceMaps: 'inline',
29
29
  jsc: {
30
30
  parser: {
31
31
  syntax: 'typescript',
@@ -9,7 +9,7 @@
9
9
  "test:ci": "jest --passWithNoTests --maxWorkers 4",
10
10
  "typecheck": "tsc --noEmit",
11
11
  "lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx .",
12
- "lint:fix": "{{ packageManagerName }} run lint{{#if_eq packageManagerName npm}} --{{/if_eq}} --fix",
12
+ "lint:fix": "{{ packageManagerName }} run lint{{#if isNPM}} --{{/if}} --fix",
13
13
  "e2e": "{{ packageManagerName }} exec cypress install && {{ packageManagerName }} exec grafana-e2e run",
14
14
  "e2e:update": "{{ packageManagerName }} exec cypress install && {{ packageManagerName }} exec grafana-e2e run --update-screenshots",
15
15
  "server": "docker-compose up --build",