@andersbakken/fisk 4.0.14 → 4.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7562,7 +7562,7 @@ class ObjectCache extends EventEmitter__default["default"] {
7562
7562
  .map((fileName) => {
7563
7563
  const ret = { path: path__default["default"].join(this.dir, fileName) };
7564
7564
  console.log("shit", fileName, fileName.length, ret);
7565
- if (fileName.length === 32) {
7565
+ if (fileName.length === 40) {
7566
7566
  try {
7567
7567
  const stat = fs$4.statSync(ret.path);
7568
7568
  if (stat.isFile()) {
@@ -7590,11 +7590,11 @@ class ObjectCache extends EventEmitter__default["default"] {
7590
7590
  }
7591
7591
  loadFile(filePath, fileSize) {
7592
7592
  const fileName = path__default["default"].basename(filePath);
7593
- // console.log("got file", file);
7593
+ console.log("got file", filePath, fileSize);
7594
7594
  let fd;
7595
7595
  let jsonBuffer;
7596
7596
  try {
7597
- if (fileName.length === 32) {
7597
+ if (fileName.length === 40) {
7598
7598
  const headerSizeBuffer = Buffer.allocUnsafe(4);
7599
7599
  fd = fs$4.openSync(filePath, "r");
7600
7600
  const stat = fs$4.statSync(filePath);
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@andersbakken/fisk",
3
- "version": "4.0.14",
3
+ "version": "4.0.16",
4
4
  "description": "Fisk, a distributed compile system",
5
5
  "scripts": {
6
6
  "lint": "eslint . --ext .ts",
7
7
  "rollup": "rollup -c",
8
8
  "tsc": "tsc -p .",
9
- "build": "npm run clean:dist && mkdir -p dist && npm run lint && npm run rollup",
10
- "clean:dist": "rm -rf dist/*",
11
- "clean:cache": "rm -rf .cache/*",
12
- "clean": "npm run clean:dist && npm run clean:cache"
9
+ "build": "npm run clean:dist && mkdir -p dist && run-p lint rollup",
10
+ "clean:dist": "del-cli dist/*",
11
+ "clean:cache": "del-cli .cache/*",
12
+ "clean": "run-p clean:dist clean:cache"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
@@ -64,11 +64,14 @@
64
64
  "@types/ws": "^8.5.3",
65
65
  "@typescript-eslint/eslint-plugin": "^4.33.0",
66
66
  "@typescript-eslint/parser": "^4.14.2",
67
+ "del-cli": "^3.0.1",
67
68
  "eslint": "^7.19.0",
68
69
  "eslint-plugin-sort-imports-es6-autofix": "^0.5.0",
70
+ "npm-run-all": "^4.1.5",
69
71
  "prettier": "^2.2.1",
70
72
  "rollup": "^2.38.4",
71
73
  "rollup-plugin-hashbang": "^3.0.0",
72
- "rollup-plugin-typescript2": "^0.27.0"
74
+ "rollup-plugin-typescript2": "^0.27.0",
75
+ "run-p": "^0.0.0"
73
76
  }
74
77
  }