fyn 2.1.6 → 3.0.0

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.
@@ -319,12 +319,14 @@ function getCacheDir() {
319
319
  const dirname = typeof process.getuid === 'function'
320
320
  ? 'v8-compile-cache-' + process.getuid()
321
321
  : 'v8-compile-cache';
322
+ // Avoid cache incompatibility issues with Rosetta on Apple Silicon.
323
+ const arch = process.arch;
322
324
  const version = typeof process.versions.v8 === 'string'
323
325
  ? process.versions.v8
324
326
  : typeof process.versions.chakracore === 'string'
325
327
  ? 'chakracore-' + process.versions.chakracore
326
328
  : 'node-' + process.version;
327
- const cacheDir = path.join(os.tmpdir(), dirname, version);
329
+ const cacheDir = path.join(os.tmpdir(), dirname, arch, version);
328
330
  return cacheDir;
329
331
  }
330
332
 
package/package.json CHANGED
@@ -1,19 +1,21 @@
1
1
  {
2
2
  "name": "fyn",
3
- "version": "2.1.6",
3
+ "version": "3.0.0",
4
4
  "description": "fyn is the NPM for fynpo -- a zero setup monorepo tool",
5
5
  "main": "./bin/fyn.js",
6
- "homepage": "https://jchip.github.io/fynpo/",
6
+ "homepage": "https://github.com/jchip/fynjs/tree/main/packages/fyn",
7
7
  "license": "Apache-2.0",
8
8
  "scripts": {
9
- "test": "xrun xarc/test-only",
10
- "debug-test": "node --inspect-brk node_modules/.bin/mocha --extension ts,js,tsx,jsx,cjs,mjs -c test/spec",
11
- "lint": "xrun xarc/lint",
9
+ "test": "vitest run",
10
+ "test:watch": "vitest",
11
+ "test:ui": "vitest --ui",
12
+ "test:coverage": "vitest run --coverage",
13
+ "debug-test": "node --inspect-brk node_modules/.bin/vitest --extension ts,js,tsx,jsx,cjs,mjs test/spec",
12
14
  "compile-yarn": "babel yarn/src --out-dir yarn/lib",
13
- "build": "tsx node_modules/.bin/xrun --serial fyn/create-tgz compile-yarn bundle",
15
+ "build": "node build.mjs",
14
16
  "analyze": "ANALYZE_BUNDLE=1 xrun compile-yarn bundle",
15
- "coverage": "xrun xarc/check",
16
- "ci:check": "xrun xarc/check",
17
+ "coverage": "vitest run --coverage",
18
+ "ci:check": "vitest run --coverage",
17
19
  "coveralls": "cat coverage/lcov.info | coveralls",
18
20
  "prepublishOnly": "xrun build",
19
21
  "postpack": "publish-util-postpack",
@@ -32,12 +34,11 @@
32
34
  "publishConfig": {
33
35
  "access": "public",
34
36
  "registry": "https://registry.npmjs.com/",
35
- "tag": "v2"
37
+ "tag": "v3"
36
38
  },
37
39
  "files": [
38
40
  "bin",
39
- "dist",
40
- "src"
41
+ "dist"
41
42
  ],
42
43
  "keywords": [
43
44
  "node",
@@ -64,9 +65,12 @@
64
65
  "mono-repo",
65
66
  "workspaces"
66
67
  ],
68
+ "bugs": {
69
+ "url": "https://github.com/jchip/fynjs/issues"
70
+ },
67
71
  "repository": {
68
72
  "type": "git",
69
- "url": "https://github.com/jchip/fynpo.git",
73
+ "url": "https://github.com/jchip/fynjs.git",
70
74
  "directory": "packages/fyn"
71
75
  },
72
76
  "contributors": [
@@ -75,9 +79,6 @@
75
79
  "Divya Karippath"
76
80
  ],
77
81
  "engines": {
78
- "node": ">=14.14"
79
- },
80
- "opfs": {
81
- "bluebird": true
82
+ "node": ">=22.12.0"
82
83
  }
83
84
  }