diff package.json @ 99:faf7e432f089

WIP build setup
author drewp@bigasterisk.com
date Fri, 11 Feb 2022 22:21:51 -0800
parents 6807ee85d031
children ad08e5e25fc9
line wrap: on
line diff
--- a/package.json	Fri Feb 11 20:28:55 2022 -0800
+++ b/package.json	Fri Feb 11 22:21:51 2022 -0800
@@ -7,14 +7,24 @@
     "email": "drewp@bigasterisk.com"
   },
   "registry": "https://bigasterisk.com/js/",
-  "types": "build/index.d.ts",
-  "module": "build/lib.bundle",
   "scripts": {
-    "build": "rollup -c",
-    "build_forever": "rollup -cw",
+    "rbuild": "rollup -c",
+    "rbuild_forever": "rollup -cw",
     "test": "jest",
-    "test_forever": "jest --watch"
+    "test_forever": "jest --watch",
+    "dev": "vite",
+    "build": "tsc && vite build"
   },
+  "main": "dist/streamed-graph.es.js",
+  "module": "src/index.ts",
+  "types": "types/index.d.ts",
+  "zzzexports": {
+    ".": "./dist/streamed-graph.es.js"
+  },
+  "zzzfiles": [
+    "dist",
+    "types"
+  ],
   "dependencies": {
     "@types/jsonld": "^1.5.6",
     "@types/n3": "^1.10.4",
@@ -25,21 +35,24 @@
     "rdf-js": "^4.0.2"
   },
   "devDependencies": {
+    "@types/jest": "^27.4.0",
+    "jest": "^27.5.1",
+    "node-globals": "^0.1.5",
+    "stylus": "^0.56.0",
+    "ts-jest": "^27.1.3",
+    "tslib": "^2.3.1",
+    "typescript": "^4.5.5",
+    "vite": "^2.8.1"
+  },
+  "unusedep": {
     "@rollup/plugin-commonjs": "^21.0.1",
     "@rollup/plugin-node-resolve": "^13.1.3",
     "@rollup/plugin-replace": "^3.1.0",
     "@rollup/plugin-typescript": "^8.3.0",
-    "@types/jest": "^27.4.0",
     "@types/rollup-plugin-postcss": "^3.1.4",
-    "jest": "^27.5.1",
-    "node-globals": "^0.1.5",
     "rollup": "^2.67.2",
     "rollup-plugin-node-builtins": "^2.1.2",
     "rollup-plugin-node-globals": "^1.4.0",
-    "rollup-plugin-postcss": "^4.0.2",
-    "stylus": "^0.56.0",
-    "ts-jest": "^27.1.3",
-    "tslib": "^2.3.1",
-    "typescript": "^4.5.5"
+    "rollup-plugin-postcss": "^4.0.2"
   }
 }