From 872eeeec6bcb8eee102dcef4a8f671b5d495409a Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Sat, 10 Apr 2021 02:12:28 +0200 Subject: [PATCH] Update package files --- client/.npmignore | 2 -- client/package.json | 6 ++++++ frontend/.npmignore | 5 ----- frontend/package.json | 8 ++++++++ leaflet/package.json | 10 ++++++++++ server/.npmignore | 2 -- server/package.json | 7 ++++++- types/package.json | 6 +++++- types/tsconfig.json | 3 ++- utils/package.json | 5 +++++ utils/tsconfig.json | 3 ++- 11 files changed, 44 insertions(+), 13 deletions(-) delete mode 100644 client/.npmignore delete mode 100644 frontend/.npmignore delete mode 100644 server/.npmignore diff --git a/client/.npmignore b/client/.npmignore deleted file mode 100644 index d4b0c5a4..00000000 --- a/client/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -*.iml -.idea \ No newline at end of file diff --git a/client/package.json b/client/package.json index 7a3c225f..ec534def 100644 --- a/client/package.json +++ b/client/package.json @@ -19,6 +19,12 @@ "type": "git", "url": "https://github.com/FacilMap/facilmap.git" }, + "files": [ + "dist", + "src", + "README.md", + "tsconfig.json" + ], "scripts": { "build": "webpack", "watch": "webpack --watch", diff --git a/frontend/.npmignore b/frontend/.npmignore deleted file mode 100644 index 707eaac6..00000000 --- a/frontend/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -build/Open-SVG-Map-Icons -build/icons.js -build/client.js -*.iml -.idea \ No newline at end of file diff --git a/frontend/package.json b/frontend/package.json index 29c7608c..d4340d6f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -18,6 +18,14 @@ "url": "https://github.com/FacilMap/facilmap.git" }, "main": "./entry.js", + "files": [ + "dist", + "src", + "static", + "iframe-test.html", + "README.md", + "tsconfig.json" + ], "scripts": { "build": "webpack", "clean": "rimraf dist", diff --git a/leaflet/package.json b/leaflet/package.json index c8b8afca..456863f1 100644 --- a/leaflet/package.json +++ b/leaflet/package.json @@ -21,6 +21,16 @@ "type": "git", "url": "https://github.com/FacilMap/facilmap.git" }, + "files": [ + "assets", + "dist", + "src", + "./download-icons.ts", + "./example.html", + "./icontest.html", + "README.md", + "tsconfig.json" + ], "scripts": { "build": "webpack", "build-module": "webpack --config-name module", diff --git a/server/.npmignore b/server/.npmignore deleted file mode 100644 index d4b0c5a4..00000000 --- a/server/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -*.iml -.idea \ No newline at end of file diff --git a/server/package.json b/server/package.json index cbe9d16e..88f0318e 100644 --- a/server/package.json +++ b/server/package.json @@ -17,6 +17,11 @@ "type": "git", "url": "https://github.com/FacilMap/facilmap.git" }, + "files": [ + "src", + "README.md", + "tsconfig.json" + ], "scripts": { "start": "npm run deps && npm run server", "deps": "npm install", @@ -27,7 +32,7 @@ "lint": "eslint src/**/*.ts" }, "bin": { - "facilmap-server": "src/server.ts" + "facilmap-server": "ts-node --transpile-only src/server.ts" }, "dependencies": { "@mapbox/polyline": "^1.1.1", diff --git a/types/package.json b/types/package.json index 66376e52..93961e12 100644 --- a/types/package.json +++ b/types/package.json @@ -13,9 +13,13 @@ "type": "git", "url": "https://github.com/FacilMap/facilmap.git" }, + "files": [ + "src", + "README.md", + "tsconfig.json" + ], "dependencies": { "@types/geojson": "^7946.0.7" }, - "private": true, "devDependencies": {} } diff --git a/types/tsconfig.json b/types/tsconfig.json index 02fa87bf..1b2345e0 100644 --- a/types/tsconfig.json +++ b/types/tsconfig.json @@ -8,6 +8,7 @@ "outDir": "dist", "moduleResolution": "node", "noErrorTruncation": true, - "skipLibCheck": true + "skipLibCheck": true, + "noEmit": true } } \ No newline at end of file diff --git a/utils/package.json b/utils/package.json index bac5671a..6e55cd01 100644 --- a/utils/package.json +++ b/utils/package.json @@ -21,6 +21,11 @@ "types": "tsc --noEmit src/*", "lint": "eslint src/*" }, + "files": [ + "src", + "README.md", + "tsconfig.json" + ], "dependencies": { "cheerio": "^1.0.0-rc.5", "dompurify": "^2.2.7", diff --git a/utils/tsconfig.json b/utils/tsconfig.json index 702b88a9..f63a90b7 100644 --- a/utils/tsconfig.json +++ b/utils/tsconfig.json @@ -9,7 +9,8 @@ "moduleResolution": "node", "noErrorTruncation": true, "skipLibCheck": true, - "experimentalDecorators": true + "experimentalDecorators": true, + "noEmit": true }, "include": ["src/**/*"] } \ No newline at end of file