The AppContainerBuilder example file has been successfully moved outside the src folder and excluded from the TypeScript build.
- From:
src/Builder/Samples/AppContainerBuilder.example.ts - To:
examples/AppContainerBuilder.example.ts - Status: ✅ Completed
- File:
tsconfig.json - Changes:
- Added
"examples"to theexcludearray - Removed
"src/Builder/Samples/AppContainerBuilder.example.ts"from thefilesarray
- Added
- Status: ✅ Completed
- Action: Removed
src/Builder/Samples/directory - Status: ✅ Completed
- Action: Removed
.out-bin/Builder/Samples/directory - Status: ✅ Completed
- File:
examples/README.md - Content: Instructions on how to use the examples
- Status: ✅ Completed
drunk-pulumi-azure/
├── examples/ # ✨ NEW - Examples directory (excluded from build)
│ ├── README.md # Usage instructions
│ └── AppContainerBuilder.example.ts # Example file
├── src/
│ └── Builder/
│ ├── AppContainerBuilder.ts # Main builder (included in build)
│ └── types/
│ └── appContainerBuilder.ts # Type definitions (included in build)
├── .out-bin/
│ └── Builder/
│ ├── AppContainerBuilder.js # Compiled output
│ └── AppContainerBuilder.d.ts # Type definitions
└── tsconfig.json # Updated to exclude examples/
$ ls examples/
AppContainerBuilder.example.ts
README.md$ ls src/Builder/Samples/
ls: src/Builder/Samples/: No such file or directory$ ls .out-bin/Builder/ | grep -i sample
# No results - Samples directory removed{
"exclude": [
"node_modules",
".out-bin",
".tools",
"src/z_tests/**/*.ts",
"pulumi-test",
"examples"
]
}- Clean Build: Example files are not compiled into the published package
- Better Organization: Examples are separate from source code
- Easier Maintenance: Examples can be updated without affecting the build
- Clear Documentation: README explains how to use the examples
- Smaller Package Size: No unnecessary compiled example files in distribution
Users can reference the examples by:
- Viewing them on GitHub in the
examples/directory - Copying them to their own Pulumi projects
- Adapting them for their specific use cases
The examples serve as documentation and reference implementations without being part of the compiled library.
✅ Build: Successful
✅ TypeScript Compilation: Clean (no example files)
✅ Output Directory: Clean (no Samples/ directory)
✅ Package Ready: For distribution
Date: November 25, 2025
Status: ✅ Complete