leaflet-rotate 0.3.0 → 0.4.0

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 CHANGED
@@ -50,6 +50,6 @@ Initial changes to this project have been apported by comparing the following br
50
50
  ---
51
51
 
52
52
  **Compatibile with:**
53
- [![Leaflet 1.x compatible!](https://img.shields.io/badge/Leaflet-1.9-1EB300.svg?style=flat)](http://leafletjs.com/reference.html)
53
+ [![Leaflet 1.x compatible!](https://img.shields.io/badge/Leaflet-1.9-1EB300.svg?style=flat)](http://leafletjs.com/reference.html) [![Leaflet 2.x compatible!](https://img.shields.io/badge/Leaflet-2.0.0--alpha.1-1EB300.svg?style=flat)](http://leafletjs.com/reference.html)
54
54
 
55
55
  **Contributors:** [IvanSanchez](https://github.com/IvanSanchez), [Fnicollet](https://github.com/fnicollet/Leaflet/tree/rotate-master), [Hyperknot](https://github.com/hyperknot), [Raruto](https://github.com/Raruto/leaflet-rotate)
package/build/test.js ADDED
@@ -0,0 +1,18 @@
1
+ import { spawnSync } from 'node:child_process';
2
+ import { build } from './build.js';
3
+
4
+ await build();
5
+
6
+ for (const version of ['1', '2']) {
7
+ console.log(`\nRunning tests with Leaflet v${version}.x`);
8
+ const result = spawnSync(process.execPath, [
9
+ 'node_modules/@cucumber/cucumber/bin/cucumber.js',
10
+ ...process.argv.slice(2),
11
+ ], {
12
+ env: { ...process.env, LEAFLET_VERSION: version },
13
+ stdio: 'inherit',
14
+ });
15
+
16
+ if (result.error) throw result.error;
17
+ if (result.status !== 0) process.exitCode = result.status ?? 1;
18
+ }