Loris Leiva hace 1 año
padre
commit
bb57b87853
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      scripts/upgrade-template.mjs

+ 4 - 2
scripts/upgrade-template.mjs

@@ -1,10 +1,12 @@
 #!/usr/bin/env zx
 import 'zx/globals';
 import { getCargo } from './utils.mjs';
-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'));
+const rustClientCargo = getCargo(path.join('clients', 'rust'));
+const jsClientPkg = require(
+  path.join(__dirname, '..', 'clients', 'js', 'package.json')
+);
 const templateArgs = [
   'system',
   '--address',