@astrale-os/sdk 0.5.0-beta.17 → 0.5.0-beta.19
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.
|
@@ -76,7 +76,7 @@ export function compileDomainPackage(projectDir, input) {
|
|
|
76
76
|
return Object.freeze({ root });
|
|
77
77
|
}
|
|
78
78
|
function runCompiler(project, arguments_) {
|
|
79
|
-
const compiler = resolveCompiler(
|
|
79
|
+
const compiler = resolveCompiler();
|
|
80
80
|
const result = spawnSync(process.execPath, [compiler, ...arguments_], {
|
|
81
81
|
cwd: project,
|
|
82
82
|
encoding: 'utf8',
|
|
@@ -91,14 +91,14 @@ function runCompiler(project, arguments_) {
|
|
|
91
91
|
throw new TypeError(`Domain package compilation failed.${detail.length === 0 ? '' : `\n${detail}`}`);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
function resolveCompiler(
|
|
95
|
-
const
|
|
94
|
+
function resolveCompiler() {
|
|
95
|
+
const sdkRequire = createRequire(import.meta.url);
|
|
96
96
|
let manifestPath;
|
|
97
97
|
try {
|
|
98
|
-
manifestPath =
|
|
98
|
+
manifestPath = sdkRequire.resolve('@typescript/native-preview/package.json');
|
|
99
99
|
}
|
|
100
100
|
catch (cause) {
|
|
101
|
-
throw new TypeError('Domain packaging requires the
|
|
101
|
+
throw new TypeError('Domain packaging requires the SDK-owned @typescript/native-preview compiler.', { cause });
|
|
102
102
|
}
|
|
103
103
|
const manifest = JSON.parse(readFileSync(manifestPath, 'utf8'));
|
|
104
104
|
const target = typeof manifest.bin === 'string' ? manifest.bin : manifest.bin?.tsgo;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/sdk",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.19",
|
|
4
4
|
"description": "Schema-first SDK for defining, composing, and deploying Astrale domains",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -215,6 +215,7 @@
|
|
|
215
215
|
"@astrale-os/kernel-dsl": "0.2.0-beta.7",
|
|
216
216
|
"@astrale-os/kernel-protocol": "0.5.0-beta.9",
|
|
217
217
|
"@astrale-os/kernel-server": "0.5.0-beta.10",
|
|
218
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
218
219
|
"hono": "^4.13.2",
|
|
219
220
|
"jose": "^6.2.9",
|
|
220
221
|
"typescript": "~6.0.3",
|
|
@@ -229,7 +230,6 @@
|
|
|
229
230
|
"@hono/node-server": "^2.1.1",
|
|
230
231
|
"@hono/node-server-v1": "npm:@hono/node-server@1.19.0",
|
|
231
232
|
"@types/node": "^22.20.1",
|
|
232
|
-
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
233
233
|
"husky": "~9.1.7",
|
|
234
234
|
"lint-staged": "~17.3.0",
|
|
235
235
|
"mermaid": "^11.16.1",
|
|
@@ -294,6 +294,7 @@
|
|
|
294
294
|
"check:knowledge": "node knowledge/cli/main.mjs check knowledge && bash knowledge/cli/test.sh",
|
|
295
295
|
"check:linter-policy": "node scripts/sync-domain-policy.mjs --check",
|
|
296
296
|
"check:issues": "issues/.cli/issues check && node --test issues/.cli/history.test.mjs && node --test issues/.cli/view-server.test.mjs && node --test issues/.view/contract.test.mjs",
|
|
297
|
+
"qualify:publications": "node scripts/qualify-publications.mjs",
|
|
297
298
|
"sync:linter-policy": "node scripts/sync-domain-policy.mjs",
|
|
298
299
|
"redesign:inventory": "node scripts/sdk-v1-redesign/inventory.mjs",
|
|
299
300
|
"redesign:sync-paths": "node scripts/sdk-v1-redesign/sync-ledger-paths.mjs",
|