feat: add module type to package.json for ES module support

This commit is contained in:
Tudor Stanciu 2025-10-06 00:01:51 +03:00
parent 228807cfed
commit ed8023154b
3 changed files with 6 additions and 7 deletions

8
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "bitip", "name": "bitip",
"version": "1.0.3", "version": "1.0.4",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bitip", "name": "bitip",
"version": "1.0.3", "version": "1.0.4",
"license": "MIT", "license": "MIT",
"workspaces": [ "workspaces": [
"src/backend", "src/backend",
@ -6652,7 +6652,7 @@
}, },
"src/backend": { "src/backend": {
"name": "bitip-backend", "name": "bitip-backend",
"version": "1.0.3", "version": "1.0.4",
"dependencies": { "dependencies": {
"@maxmind/geoip2-node": "^6.1.0", "@maxmind/geoip2-node": "^6.1.0",
"compression": "^1.7.4", "compression": "^1.7.4",
@ -7141,7 +7141,7 @@
}, },
"src/frontend": { "src/frontend": {
"name": "bitip-frontend", "name": "bitip-frontend",
"version": "1.0.3", "version": "1.0.4",
"dependencies": { "dependencies": {
"@flare/utiliyo": "^1.2.2", "@flare/utiliyo": "^1.2.2",
"axios": "^1.12.2", "axios": "^1.12.2",

View File

@ -2,6 +2,7 @@
"name": "bitip", "name": "bitip",
"version": "1.0.4", "version": "1.0.4",
"description": "Bitip - GeoIP Lookup Service with REST API and Web Interface", "description": "Bitip - GeoIP Lookup Service with REST API and Web Interface",
"type": "module",
"main": "dist/backend/index.js", "main": "dist/backend/index.js",
"scripts": { "scripts": {
"dev": "concurrently \"npm run dev:backend\" \"npm run dev:frontend\"", "dev": "concurrently \"npm run dev:backend\" \"npm run dev:frontend\"",

View File

@ -2,7 +2,5 @@
// DO NOT EDIT - This file is automatically generated // DO NOT EDIT - This file is automatically generated
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
window.env = { window.env = {
"BASE_PATH": "/", BASE_PATH: '/',
"FRONTEND_API_KEY": "frontend-dev-key",
"DEBOUNCE_MS": 2000
}; };