Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.10.2] - 2026-05-22

### Fixed
- **Open Core Build Fallback**: Updated the `build:resolve` script to gracefully fallback to Open Core licensing types when the proprietary `@core` module is unavailable, resolving CI build failures in public GitHub Actions environments.

## [2.10.0] - 2026-05-11

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tempo-monorepo",
"version": "2.10.1",
"version": "2.10.2",
"private": true,
"description": "Magma Computing Monorepo",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magmacomputing/library",
"version": "2.10.1",
"version": "2.10.2",
"description": "Shared utility library for Tempo",
"author": "Magma Computing Solutions",
"license": "MIT",
Expand Down
23 changes: 14 additions & 9 deletions packages/tempo/bin/resolve-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ const LIB_DEST_DIR = path.resolve(DIST_DIR, 'lib');
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const LIC_SRC_DIR = process.env.LIC_SRC_DIR || path.resolve(__dirname, '../../../../tempo-plugin/internal/@core/dist');

if (!fs.existsSync(LIC_SRC_DIR)) {
console.error(`\n⚠️ ERROR: External license directory not found: ${LIC_SRC_DIR}`);
console.error(`⚠️ Cannot build premium module without proprietary @core types.\n`);
process.exit(1);
}
const isPremiumAvailable = fs.existsSync(LIC_SRC_DIR);

const LIC_DEST_DIR = path.resolve(DIST_DIR, 'lic');

Expand All @@ -48,10 +44,19 @@ usedModules.forEach(mod => {

// 4. Copy licensing core types
if (!fs.existsSync(LIC_DEST_DIR)) fs.mkdirSync(LIC_DEST_DIR, { recursive: true });
const licFiles = fs.readdirSync(LIC_SRC_DIR).filter(f => f.endsWith('.d.ts'));
licFiles.forEach(file => {
fs.copyFileSync(path.join(LIC_SRC_DIR, file), path.join(LIC_DEST_DIR, file));
});

if (isPremiumAvailable) {
const licFiles = fs.readdirSync(LIC_SRC_DIR).filter(f => f.endsWith('.d.ts'));
licFiles.forEach(file => {
fs.copyFileSync(path.join(LIC_SRC_DIR, file), path.join(LIC_DEST_DIR, file));
});
} else {
console.log('ℹ️ Premium licensing not found. Falling back to Open Core types.');
const defaultLicType = path.resolve(DIST_DIR, 'support/support.license.d.ts');
if (fs.existsSync(defaultLicType)) {
fs.copyFileSync(defaultLicType, path.join(LIC_DEST_DIR, 'index.d.ts'));
}
}

// 5. Walk through all .d.ts files in dist/ to rewrite aliases
function walk(dir: string) {
Expand Down
4 changes: 2 additions & 2 deletions packages/tempo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magmacomputing/tempo",
"version": "2.10.1",
"version": "2.10.2",
"description": "The Tempo core library",
"author": "Magma Computing Solutions",
"license": "MIT",
Expand Down Expand Up @@ -227,7 +227,7 @@
},
"devDependencies": {
"@js-temporal/polyfill": "^0.5.1",
"@magmacomputing/library": "2.10.1",
"@magmacomputing/library": "2.10.2",
"@rollup/plugin-alias": "^6.0.0",
"esbuild": "^0.25.12",
"javascript-obfuscator": "^5.4.2",
Expand Down
Loading