@fireproof/vendor 0.23.0 → 0.23.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.
package/merge-package.ts CHANGED
@@ -61,7 +61,7 @@ function patchVersion(packageJson: Record<string, unknown>) {
61
61
  packageJson.version = version;
62
62
  }
63
63
 
64
- type Exports = Record<string, Record<string, string>>;
64
+ type Exports = Record<string, string | Record<string, string | Record<string, string>>>;
65
65
  interface PackageJson {
66
66
  name: string;
67
67
  dependencies: Record<string, string>;
@@ -71,7 +71,7 @@ interface PackageJson {
71
71
  function pluginExports(name: string, exports: Exports, srcDir: string, buildBase: string): Exports {
72
72
  const result: Exports = {};
73
73
  // const base = path.relative(buildBase, srcDir)
74
- const nested = {};
74
+ const nested: Record<string, string | Record<string, string>> = {};
75
75
  result[`./${name}`] = nested;
76
76
  console.log(">>>>>=", name, srcDir);
77
77
  // !exports && console.log(">>>>>=", name, srcDir)
@@ -83,7 +83,7 @@ function pluginExports(name: string, exports: Exports, srcDir: string, buildBase
83
83
  } else {
84
84
  nested[key] = Object.entries(value).reduce(
85
85
  (acc, [k, v]) => {
86
- acc[k] = `./${path.join(path.relative(buildBase, srcDir), v)}`;
86
+ acc[k] = `./${path.join(path.relative(buildBase, srcDir), v as string)}`;
87
87
  return acc;
88
88
  },
89
89
  {} as Record<string, string>,
@@ -191,7 +191,7 @@ async function main() {
191
191
  {} as Record<string, string>,
192
192
  );
193
193
  await fs.writeFile(args.buildPackageJson, JSON.stringify(packageJson, null, 2));
194
- const projectRoot = path.resolve(dirname(args.srcPackageJson));
194
+ const projectRoot = path.resolve(path.dirname(args.srcPackageJson));
195
195
  const gitignoreSrc = path.resolve(projectRoot, ".gitignore");
196
196
  await $`cp ${gitignoreSrc} ${path.join(args.buildBase, ".npmignore")}`;
197
197
  // await $`cp ../.gitignore ${args.buildBase}/.npmignore`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fireproof/vendor",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "description": "vendor patch repo to support esm",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -14,13 +14,13 @@
14
14
  "author": "",
15
15
  "license": "AFL-2.0",
16
16
  "devDependencies": {
17
- "@fireproof/core-cli": "0.23.0",
17
+ "@fireproof/core-cli": "0.23.1",
18
18
  "@types/jscodeshift": "^17.3.0",
19
19
  "cmd-ts": "^0.13.0",
20
20
  "jscodeshift": "^17.1.1",
21
- "tsd": "^0.32.0",
21
+ "tsd": "^0.33.0",
22
22
  "tsx": "^4.19.2",
23
- "zx": "^8.7.1"
23
+ "zx": "^8.8.0"
24
24
  },
25
25
  "dependencies": {
26
26
  "yocto-queue": "^1.2.1"
@@ -2,7 +2,7 @@ import { ImportDeclaration, API, FileInfo, Options } from "jscodeshift";
2
2
 
3
3
  const nodeExternals = new Set(["path", "fs", "fs/promises"]);
4
4
 
5
- const replace = {
5
+ const replace: Record<string, string> = {
6
6
  /*
7
7
  "cborg": "@fireproof/vendor/cborg",
8
8
  "cborg/utils": "@fireproof/vendor/cborg/utils",