create-fhevm-playground-pro 1.0.24 → 1.0.25
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.
- package/dist/scaffolder.js +3 -0
- package/package.json +1 -1
package/dist/scaffolder.js
CHANGED
|
@@ -48,6 +48,9 @@ async function createExample(options) {
|
|
|
48
48
|
// Try to find and overlay the actual example's contracts/tests
|
|
49
49
|
const exampleDirName = CATEGORY_TO_EXAMPLE_DIR[options.category] || options.category;
|
|
50
50
|
const searchPaths = [
|
|
51
|
+
// Search relative to package installation
|
|
52
|
+
path_1.default.resolve(__dirname, '..', '..', 'central-repo', 'examples', `${exampleDirName}-premium`),
|
|
53
|
+
// Also search relative to cwd (for development/local use)
|
|
51
54
|
path_1.default.resolve(process.cwd(), 'central-repo', 'examples', `${exampleDirName}-premium`),
|
|
52
55
|
path_1.default.resolve(process.cwd(), '..', 'central-repo', 'examples', `${exampleDirName}-premium`),
|
|
53
56
|
path_1.default.resolve(process.cwd(), '..', '..', 'central-repo', 'examples', `${exampleDirName}-premium`),
|