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

View File

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

View File

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