@fireproof/core-cli 0.23.15-dev-windows → 0.23.15-dev-windows-1

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.
Files changed (2) hide show
  1. package/package.json +5 -7
  2. package/run.js +5 -9
package/package.json CHANGED
@@ -1,10 +1,8 @@
1
1
  {
2
2
  "name": "@fireproof/core-cli",
3
- "version": "0.23.15-dev-windows",
3
+ "version": "0.23.15-dev-windows-1",
4
4
  "description": "Live ledger for the web.",
5
5
  "type": "module",
6
- "module": "./index.js",
7
- "main": "./index.js",
8
6
  "bin": "./run.js",
9
7
  "keywords": [
10
8
  "ledger",
@@ -35,9 +33,9 @@
35
33
  "dependencies": {
36
34
  "@typescript/native-preview": "7.0.0-dev.20251009.1",
37
35
  "@adviser/cement": "^0.4.43",
38
- "@fireproof/core-runtime": "0.23.15-dev-windows",
39
- "@fireproof/core-types-base": "0.23.15-dev-windows",
40
- "@fireproof/vendor": "0.23.15-dev-windows",
36
+ "@fireproof/core-runtime": "0.23.15-dev-windows-1",
37
+ "@fireproof/core-types-base": "0.23.15-dev-windows-1",
38
+ "@fireproof/vendor": "0.23.15-dev-windows-1",
41
39
  "aws4fetch": "^1.0.20",
42
40
  "cmd-ts": "^0.14.2",
43
41
  "find-up": "^8.0.0",
@@ -48,7 +46,7 @@
48
46
  "zx": "^8.8.4"
49
47
  },
50
48
  "devDependencies": {
51
- "@fireproof/core-cli": "0.23.15-dev-windows",
49
+ "@fireproof/core-cli": "0.23.15-dev-windows-1",
52
50
  "@types/fs-extra": "^11.0.4",
53
51
  "@types/semver": "^7.7.1",
54
52
  "tsx": "^4.20.4",
package/run.js CHANGED
@@ -28,18 +28,14 @@ function exec(cmd, args) {
28
28
  // const idxTsc = process.argv.findIndex(i => i === 'tsc')
29
29
  const idxRunIdx = process.argv.findIndex((i) => i.endsWith("run.js"));
30
30
  const runDirectory = path.dirname(process.argv[idxRunIdx]);
31
- // console.log(runDirectory)
32
- // console.log(">>>>", process.argv, idxTsc, runDirectory)
33
- // if (idxTsc > 0) {
34
- // const fp_tsc = process.env.FP_TSC ? process.env.FP_TSC : "tsgo"
35
- // const restArgs = process.argv.slice(idxTsc + 1) ?? []
36
- // console.log(`Using typescript: ${fp_tsc}`) // :${JSON.stringify(restArgs)}`)
37
- // exec(fp_tsc, restArgs, runDirectory)
38
- // } else {
39
31
  const mainJs = path.join(runDirectory, "main.js");
32
+ //const mainWithDistJs = path.join(runDirectory, "dist", "npm", "main.js");
33
+ //const mainJs = fs.existsSync(mainPublishedJs) ? mainPublishedJs : fs.existsSync(mainWithDistJs) ? mainWithDistJs : undefined;
40
34
  if (fs.existsSync(mainJs)) {
35
+ // make windows happy file://
36
+ const addFile = `file://${mainJs}`;
41
37
  // eslint-disable-next-line no-console, no-undef
42
- import(mainJs).catch((e) => console.error(e));
38
+ import(addFile).catch((e) => console.error(e));
43
39
  } else {
44
40
  const restArgv = process.argv.slice(idxRunIdx + 1) ?? [];
45
41
  // console.log(">>>>>", restArgv)