@mapcomponents/react-maplibre 1.0.0 → 1.0.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mapcomponents/react-maplibre",
3
- "version": "1.0.0",
4
- "main": "dist/index.esm.js",
3
+ "version": "1.0.2",
4
+ "main": "dist/index.cjs.js",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.esm.js",
7
7
  "source": "src/index.ts",
@@ -20,7 +20,6 @@
20
20
  "create-component": "./scripts/create-map-component.sh"
21
21
  },
22
22
  "dependencies": {
23
- "@cypress/react": "^8.0.0",
24
23
  "@dnd-kit/core": "^6.1.0",
25
24
  "@dnd-kit/modifiers": "^7.0.0",
26
25
  "@dnd-kit/sortable": "^8.0.0",
@@ -38,7 +37,6 @@
38
37
  "@types/topojson-client": "^3.1.4",
39
38
  "@xmldom/xmldom": "^0.8.10",
40
39
  "csv2geojson": "^5.1.2",
41
- "cypress": "^13.6.4",
42
40
  "d3": "^7.8.5",
43
41
  "jspdf": "^2.5.1",
44
42
  "maplibre-gl": "^4.0.0",
@@ -55,6 +53,7 @@
55
53
  "@babel/preset-react": "^7.23.3",
56
54
  "@bahmutov/cy-rollup": "^2.0.0",
57
55
  "@cfaester/enzyme-adapter-react-18": "^0.7.1",
56
+ "@cypress/react": "^8.0.0",
58
57
  "@rollup/plugin-babel": "^6.0.4",
59
58
  "@rollup/plugin-commonjs": "^25.0.7",
60
59
  "@rollup/plugin-url": "^8.0.2",
@@ -89,6 +88,7 @@
89
88
  "babel-plugin-inline-react-svg": "^2.0.2",
90
89
  "babel-plugin-styled-components": "^2.1.4",
91
90
  "babel-preset-react-app": "^10.0.1",
91
+ "cypress": "^13.6.4",
92
92
  "enzyme": "^3.11.0",
93
93
  "eslint": "^8.56.0",
94
94
  "eslint-config-prettier": "^9.1.0",
@@ -110,7 +110,7 @@
110
110
  "react-dom": "^18.2.0",
111
111
  "react-draggable": "^4.4.6",
112
112
  "react-i18next": "^14.0.5",
113
- "rollup": "^4.10.0",
113
+ "rollup": "^4.11.0",
114
114
  "rollup-plugin-delete": "^2.0.0",
115
115
  "rollup-plugin-import-css": "^3.4.0",
116
116
  "rollup-plugin-node-externals": "^7.0.1",
@@ -205,5 +205,7 @@
205
205
  "/distribution/.*\\.(ts|js)$"
206
206
  ]
207
207
  },
208
- "resolutions": {}
208
+ "resolutions": {
209
+ "jackspeak": "2.1.1"
210
+ }
209
211
  }
package/rollup.config.mjs CHANGED
@@ -19,34 +19,20 @@ const externalsConfig = {
19
19
  };
20
20
 
21
21
  const config = defineConfig([
22
- // CJS config
23
- //{
24
- // input: ['src/index.ts'],
25
- // output: {
26
- // file: 'dist/index.js',
27
- // format: 'cjs',
28
- // sourcemap: true,
29
- // },
30
- // plugins: [
31
- // svgr({
32
- // svgo: false,
33
- // }),
34
- // url(),
35
- // babel(),
36
- // externals(externalsConfig),
37
- // typescript({ declarationDir: 'dist/types', sourceMap: true }),
38
- // css(),
39
- // del({ targets: ['dist/*'] }),
40
- // ],
41
- //},
42
- // ESM config
43
22
  {
44
23
  input: ['src/index.ts'],
45
- output: {
46
- file: 'dist/index.esm.js',
24
+ output: [
25
+ {
26
+ file: 'dist/index.cjs.js',
47
27
  format: 'cjs',
48
28
  sourcemap: true,
49
- },
29
+ },
30
+ {
31
+ file: 'dist/index.esm.js',
32
+ format: 'es',
33
+ sourcemap: true,
34
+ }
35
+ ],
50
36
  plugins: [
51
37
  svgr({
52
38
  svgo: false,