create-fhevm-playground-pro 1.0.16 → 1.0.18

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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "require": ["ts-node/register"],
3
+ "extensions": ["ts"],
4
+ "spec": "test/**/*.test.ts",
5
+ "timeout": 200000
6
+ }
@@ -1,4 +1,5 @@
1
1
  require('@nomicfoundation/hardhat-toolbox');
2
+ require('ts-node/register');
2
3
 
3
4
  const config = {
4
5
  solidity: '0.8.24',
@@ -8,8 +9,6 @@ const config = {
8
9
  artifacts: './artifacts'
9
10
  },
10
11
  mocha: {
11
- require: ['ts-node/register'],
12
- extensions: ['ts', 'js'],
13
12
  timeout: 200000
14
13
  }
15
14
  };
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "fhEVM-example-template",
3
3
  "version": "0.1.0",
4
- "type": "module",
5
4
  "description": "Base template for fhEVM example projects",
6
5
  "scripts": {
7
6
  "test": "hardhat test",
@@ -115,8 +115,8 @@ export function isMockedMode() {
115
115
  else {
116
116
  console.log(chalk_1.default.yellow(`Example ${exampleDirName} not found; using base template contracts/tests`));
117
117
  }
118
- // Ensure only hardhat.config.cjs exists (remove .ts, .js variants for ESM compatibility)
119
- const hardhatConfigFiles = ['hardhat.config.ts', 'hardhat.config.js'];
118
+ // Ensure only hardhat.config.js exists (remove .ts, .cjs variants)
119
+ const hardhatConfigFiles = ['hardhat.config.ts', 'hardhat.config.cjs'];
120
120
  for (const configFile of hardhatConfigFiles) {
121
121
  const configPath = path_1.default.join(projectDir, configFile);
122
122
  if (fs_extra_1.default.existsSync(configPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fhevm-playground-pro",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "Premium scaffolding CLI for fhEVM Playground Pro – Zama bounty",
5
5
  "main": "dist/create-example.js",
6
6
  "bin": {