summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-06-15 10:35:15 +0300
committerMax Romanov <max.romanov@nginx.com>2021-06-15 10:35:15 +0300
commita1d2ced6fc2317d36bc917c5d0ac339bc647dc34 (patch)
tree05f845dd2f5a3654cd9b1c47e5b48a968c1efbb0 /src
parent9e711cf640d296e7afc591dbf5cfe386ee8735a0 (diff)
downloadunit-a1d2ced6fc2317d36bc917c5d0ac339bc647dc34.tar.gz
unit-a1d2ced6fc2317d36bc917c5d0ac339bc647dc34.tar.bz2
Node.js: improving and test packaging.
The patch removes the "files" section from package.json to avoid future issues with missing files. For package testing purposes, 'npm pack' is used instead of plain 'tar' to simulate packaging more accurately.
Diffstat (limited to 'src')
-rw-r--r--src/nodejs/unit-http/package.json22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/nodejs/unit-http/package.json b/src/nodejs/unit-http/package.json
index f0afe41c..debbd492 100644
--- a/src/nodejs/unit-http/package.json
+++ b/src/nodejs/unit-http/package.json
@@ -3,28 +3,6 @@
"version": "%%VERSION%%",
"description": "HTTP module for NGINX Unit",
"main": "http.js",
- "files": [
- "unit.h",
- "version.h",
- "addon.cpp",
- "unit.cpp",
- "http.js",
- "http_server.js",
- "loader.js",
- "loader.mjs",
- "nxt_napi.h",
- "package.json",
- "socket.js",
- "binding.gyp",
- "README.md",
- "websocket.js",
- "websocket_connection.js",
- "websocket_frame.js",
- "websocket_request.js",
- "websocket_router.js",
- "websocket_router_request.js",
- "websocket_server.js"
- ],
"scripts": {
"clean": "node-gyp clean",
"configure": "node-gyp configure",