Loris Leiva vor 1 Jahr
Ursprung
Commit
bb57b87853
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      scripts/upgrade-template.mjs

+ 4 - 2
scripts/upgrade-template.mjs

@@ -1,10 +1,12 @@
 #!/usr/bin/env zx
 #!/usr/bin/env zx
 import 'zx/globals';
 import 'zx/globals';
 import { getCargo } from './utils.mjs';
 import { getCargo } from './utils.mjs';
-import jsClientPkg from '../clients/js/package.json' with { type: 'json' };
 
 
 // Arguments to pass to the `create-solana-program` command.
 // 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 = [
 const templateArgs = [
   'system',
   'system',
   '--address',
   '--address',