Add conditional imports with enabled parameter#273
Conversation
🦋 Changeset detectedLatest commit: da0a748 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
enabled parameter
theoephraim
left a comment
There was a problem hiding this comment.
@copilot - remove the extra .env files
|
@copilot - update the docs, add a changeset. Also adjust the copilot instructions so that future PRs will do the same. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
varlock-website | 83b20a4 | Commit Preview URL Branch Preview URL |
Feb 06 2026, 08:38 PM |
Done! Updated documentation and added changeset in commit 2e06fee: Documentation updates:
Changeset:
PR Guidelines:
|
varlock
@varlock/astro-integration
@varlock/nextjs-integration
@varlock/vite-integration
@varlock/1password-plugin
@varlock/google-secret-manager-plugin
commit: |
|
@copilot fix linting errors |
|
@theoephraim I'll let you deal with this merge conflict since you have the full context |
|
@copilot - resolve the merge conflict |
Resolved in commit 68d591e. Successfully merged main branch changes (home directory and absolute path support) with conditional imports feature. The merge integrated: From our branch:
From main:
All 154 tests passing and linting clean. |
Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
1fa4ed7 to
8b49b4c
Compare
8b49b4c to
83b20a4
Compare
Implementation Plan for Conditional Imports Feature
enabledenabledcondition before creating child data sourcesSummary
Successfully implemented conditional imports for varlock's env-spec files. The feature allows importing files based on boolean conditions using the
enabledparameter.Key Features:
enabled=true,enabled=false)enabled=eq($ENV, "dev"))forEnv()and other resolver functions~) and absolute path imports from main branchExample Usage:
Documentation:
/reference/root-decorators.mdxto document theenabledparameter/guides/import.mdxwith multiple usage examples.changeset/conditional-imports.md).github/agents/pr-guidelines.md) for future contributorsTest Results:
Merge Resolution:
Successfully resolved merge conflict between conditional imports feature and main branch changes:
enabledparameter)~and absolute paths)Security Summary:
No security vulnerabilities were discovered during implementation. CodeQL analysis returned 0 alerts.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.