@windycom/plugin-devtools 1.0.5 → 1.0.7
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/README.md +1 -0
- package/index.mjs +3 -2
- package/package.json +35 -2
package/README.md
CHANGED
package/index.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import fs from 'fs';
|
|
|
3
3
|
import assert from 'assert';
|
|
4
4
|
import MagicString from 'magic-string';
|
|
5
5
|
import { walk } from 'estree-walker';
|
|
6
|
+
import semver from 'semver';
|
|
6
7
|
|
|
7
8
|
const testLoadedPlugin = config => {
|
|
8
9
|
const { name, version, title, desktopUI, mobileUI, routerPath, icon } = config;
|
|
@@ -13,8 +14,8 @@ const testLoadedPlugin = config => {
|
|
|
13
14
|
);
|
|
14
15
|
|
|
15
16
|
assert(
|
|
16
|
-
typeof version === 'string' &&
|
|
17
|
-
'Plugin version is not defined or is not in
|
|
17
|
+
typeof version === 'string' && semver.valid(version),
|
|
18
|
+
'Plugin version is not defined or is not in SemVer format (example: 1.3.7)',
|
|
18
19
|
);
|
|
19
20
|
|
|
20
21
|
assert(
|
package/package.json
CHANGED
|
@@ -1,9 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windycom/plugin-devtools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Developer tools and TS declarations for developers of Windy Plugins.",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"module": "index.mjs",
|
|
7
7
|
"author": "Windyty, S.E.",
|
|
8
|
-
"license": "ISC"
|
|
8
|
+
"license": "ISC",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
11
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
12
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
13
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
14
|
+
"@types/geojson": "^7946.0.14",
|
|
15
|
+
"@windycom/plugin-devtools": "file:../windy-plugins-devtools/dist",
|
|
16
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
17
|
+
"eslint-plugin-svelte": "^2.35.1",
|
|
18
|
+
"less": "^4.2.0",
|
|
19
|
+
"less-plugin-autoprefixer": "^2.1.0",
|
|
20
|
+
"rollup": "^4.9.6",
|
|
21
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
22
|
+
"rollup-plugin-serve": "^1.1.1",
|
|
23
|
+
"rollup-plugin-svelte": "^7.1.6",
|
|
24
|
+
"rollup-plugin-swc3": "^0.11.0",
|
|
25
|
+
"semver": "^7.6.0",
|
|
26
|
+
"svelte": "^4.2.9",
|
|
27
|
+
"svelte-preprocess": "^5.1.3",
|
|
28
|
+
"svelte-preprocess-less": "^0.4.0",
|
|
29
|
+
"typescript": "^5.3.3",
|
|
30
|
+
"@types/d3": "^7.4.3",
|
|
31
|
+
"@types/rollup": "^0.54.0",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
33
|
+
"d3": "^7.8.5",
|
|
34
|
+
"eslint": "^8.56.0",
|
|
35
|
+
"eslint-config-standard-with-typescript": "^43.0.1",
|
|
36
|
+
"eslint-plugin-import": "^2.29.1",
|
|
37
|
+
"eslint-plugin-n": "^16.6.2",
|
|
38
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
39
|
+
"prettier": "^3.2.4",
|
|
40
|
+
"prettier-plugin-svelte": "^3.1.2"
|
|
41
|
+
}
|
|
9
42
|
}
|