@vercel/nft 0.17.3 → 0.17.4

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.
@@ -30,6 +30,16 @@ const specialCases = {
30
30
  emitAsset(path_1.resolve(path_1.dirname(id), 'camaro.wasm'));
31
31
  }
32
32
  },
33
+ 'esbuild'({ id, emitAssetDirectory }) {
34
+ if (id.endsWith('esbuild/lib/main.js')) {
35
+ const file = path_1.resolve(id, '..', '..', 'package.json');
36
+ const pkg = JSON.parse(graceful_fs_1.readFileSync(file, 'utf8'));
37
+ for (const dep of Object.keys(pkg.optionalDependencies || {})) {
38
+ const dir = path_1.resolve(id, '..', '..', '..', dep);
39
+ emitAssetDirectory(dir);
40
+ }
41
+ }
42
+ },
33
43
  'google-gax'({ id, ast, emitAssetDirectory }) {
34
44
  if (id.endsWith('google-gax/build/src/grpc.js')) {
35
45
  // const googleProtoFilesDir = path.normalize(google_proto_files_1.getProtoPath('..'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/nft",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "repository": "vercel/nft",
5
5
  "license": "MIT",
6
6
  "main": "./out/index.js",
@@ -63,6 +63,7 @@
63
63
  "copy": "^0.3.2",
64
64
  "cowsay": "^1.4.0",
65
65
  "es-get-iterator": "^1.1.0",
66
+ "esbuild": "^0.14.12",
66
67
  "esm": "^3.2.25",
67
68
  "express": "^4.17.1",
68
69
  "fast-glob": "^3.1.1",