diff --git a/package-lock.json b/package-lock.json index 1b6106d..ec42a82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "devDependencies": { "@commitlint/cli": "^18.6.0", "@commitlint/config-conventional": "^18.6.0", - "@swc/cli": "^0.1.65", + "@swc/cli": "^0.3.9", "@swc/core": "^1.4.0", "@swc/jest": "^0.2.36", "@types/express": "^4.17.20", @@ -1826,15 +1826,17 @@ } }, "node_modules/@swc/cli": { - "version": "0.1.65", - "resolved": "https://registry.npmjs.org/@swc/cli/-/cli-0.1.65.tgz", - "integrity": "sha512-4NcgsvJVHhA7trDnMmkGLLvWMHu2kSy+qHx6QwRhhJhdiYdNUrhdp+ERxen73sYtaeEOYeLJcWrQ60nzKi6rpg==", + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@swc/cli/-/cli-0.3.9.tgz", + "integrity": "sha512-e5grxGEyNT0fYZEFmhSrRYL1kFAZAXlv+WjfQ35J6J9Hl0EtrMVymAEbGabetg2Q/2FX6HiRcjgc9LrdUCBk4A==", "dev": true, "dependencies": { "@mole-inc/bin-wrapper": "^8.0.1", + "@swc/counter": "^0.1.3", "commander": "^7.1.0", "fast-glob": "^3.2.5", "minimatch": "^9.0.3", + "piscina": "^4.3.0", "semver": "^7.3.8", "slash": "3.0.0", "source-map": "^0.7.3" @@ -1845,7 +1847,7 @@ "swcx": "bin/swcx.js" }, "engines": { - "node": ">= 12.13" + "node": ">= 16.14.0" }, "peerDependencies": { "@swc/core": "^1.2.66", @@ -7857,6 +7859,21 @@ "node": ">= 0.6" } }, + "node_modules/nice-napi": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/nice-napi/-/nice-napi-1.0.2.tgz", + "integrity": "sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "!win32" + ], + "dependencies": { + "node-addon-api": "^3.0.0", + "node-gyp-build": "^4.2.2" + } + }, "node_modules/nock": { "version": "13.5.1", "resolved": "https://registry.npmjs.org/nock/-/nock-13.5.1.tgz", @@ -7871,6 +7888,25 @@ "node": ">= 10.13" } }, + "node_modules/node-addon-api": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", + "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==", + "dev": true, + "optional": true + }, + "node_modules/node-gyp-build": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.0.tgz", + "integrity": "sha512-u6fs2AEUljNho3EYTJNBfImO5QTo/J/1Etd+NVdCj7qWKUSN/bSLkZwhDv7I+w/MSC6qJ4cknepkAYykDdK8og==", + "dev": true, + "optional": true, + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } + }, "node_modules/node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", @@ -8524,6 +8560,15 @@ "node": ">= 6" } }, + "node_modules/piscina": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/piscina/-/piscina-4.3.1.tgz", + "integrity": "sha512-MBj0QYm3hJQ/C/wIXTN1OCYC8uQ4BBJ4LVele2P4ZwVQAH04vkk8E1SpDbuemLAL1dZorbuOob9rYqJeWCcCRg==", + "dev": true, + "optionalDependencies": { + "nice-napi": "^1.0.2" + } + }, "node_modules/pkg-dir": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", diff --git a/package.json b/package.json index 78e4b4c..5f92848 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "lint:fix": "npm run lint -- --fix", "build:clean": "rimraf dist; exit 0", "validate-typescript": "tsc -p tsconfig.prod.json --noEmit", - "generate-dist": "swc ./src -d dist" + "generate-dist": "swc ./src -d dist --strip-leading-paths" }, "dependencies": { "dotenv": "^16.4.1", @@ -44,7 +44,7 @@ "devDependencies": { "@commitlint/cli": "^18.6.0", "@commitlint/config-conventional": "^18.6.0", - "@swc/cli": "^0.1.65", + "@swc/cli": "^0.3.9", "@swc/core": "^1.4.0", "@swc/jest": "^0.2.36", "@types/express": "^4.17.20",