Loris Leiva 1 年之前
父節點
當前提交
84b5f3e396
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/upgrade-template.mjs

+ 1 - 1
scripts/upgrade-template.mjs

@@ -1,7 +1,7 @@
 #!/usr/bin/env zx
 import 'zx/globals';
 import { getCargo } from './utils.mjs';
-import jsClientPkg from '../clients/js/package.json';
+import jsClientPkg from '../clients/js/package.json' with { type: 'json' };
 
 // Arguments to pass to the `create-solana-program` command.
 const rustClientCargo = getCargo(path.join(__dirname, '..', 'clients', 'rust'));