@orkestrel/scaffold 0.0.15 → 0.0.16
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/bin/scaffold.js +6 -3
- package/dist/bin/scaffold.js.map +1 -1
- package/dist/host/guides/src/scaffold.md +23 -12
- package/dist/src/core/index.cjs +6 -8
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +1 -1
- package/dist/src/core/index.d.ts +1 -1
- package/dist/src/core/index.js +6 -8
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +70 -17
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +21 -0
- package/dist/src/server/index.d.ts +21 -0
- package/dist/src/server/index.js +71 -19
- package/dist/src/server/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2275,7 +2275,7 @@ export declare function coreViteConfig(): string;
|
|
|
2275
2275
|
export declare function rootViteConfig(src: readonly Environment[], facts?: ViteFacts): string;
|
|
2276
2276
|
|
|
2277
2277
|
/** The devDependency range generated packages pin `@orkestrel/scaffold` at. */
|
|
2278
|
-
export declare const SCAFFOLD_RANGE = "^0.0.
|
|
2278
|
+
export declare const SCAFFOLD_RANGE = "^0.0.16";
|
|
2279
2279
|
|
|
2280
2280
|
/**
|
|
2281
2281
|
* Carries a `ScaffoldErrorCode` + optional `context` (AGENTS §12).
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -2275,7 +2275,7 @@ export declare function coreViteConfig(): string;
|
|
|
2275
2275
|
export declare function rootViteConfig(src: readonly Environment[], facts?: ViteFacts): string;
|
|
2276
2276
|
|
|
2277
2277
|
/** The devDependency range generated packages pin `@orkestrel/scaffold` at. */
|
|
2278
|
-
export declare const SCAFFOLD_RANGE = "^0.0.
|
|
2278
|
+
export declare const SCAFFOLD_RANGE = "^0.0.16";
|
|
2279
2279
|
|
|
2280
2280
|
/**
|
|
2281
2281
|
* Carries a `ScaffoldErrorCode` + optional `context` (AGENTS §12).
|
package/dist/src/core/index.js
CHANGED
|
@@ -226,7 +226,7 @@ var DEFAULT_VERSION = "0.0.1";
|
|
|
226
226
|
/** The `engines.node` range the `blueprint` builder fills. */
|
|
227
227
|
var DEFAULT_ENGINES = `>=${MINIMUM_NODE_VERSION}`;
|
|
228
228
|
/** The devDependency range generated packages pin `@orkestrel/scaffold` at. */
|
|
229
|
-
var SCAFFOLD_RANGE = "^0.0.
|
|
229
|
+
var SCAFFOLD_RANGE = "^0.0.16";
|
|
230
230
|
/** Tooling versions shared by scaffold and every generated workspace. */
|
|
231
231
|
var BASE_DEV_DEPENDENCIES = Object.freeze({
|
|
232
232
|
"@microsoft/api-extractor": "^7.58.12",
|
|
@@ -4139,9 +4139,7 @@ ${EXPORT_KEYWORD} ${FUNCTION_KEYWORD} isBrowserVuePath(path: string): boolean {
|
|
|
4139
4139
|
content: `import { globSync{{browserPolicySpecifier}} } from 'node:fs'
|
|
4140
4140
|
import { describe, expect, it } from 'vitest'
|
|
4141
4141
|
import { isBrowserVuePath } from './setup.js'
|
|
4142
|
-
import { inspectCodingWorkspace } from './setupPolicy.js'
|
|
4143
|
-
{{browserPolicyImport}}
|
|
4144
|
-
{{vuePolicyImport}}
|
|
4142
|
+
import { inspectCodingWorkspace } from './setupPolicy.js'{{browserPolicyImport}}{{vuePolicyImport}}
|
|
4145
4143
|
|
|
4146
4144
|
describe('repository coding law', () => {
|
|
4147
4145
|
it('keeps Vue single-file components exclusively in browser environments', () => {
|
|
@@ -4152,8 +4150,7 @@ describe('repository coding law', () => {
|
|
|
4152
4150
|
|
|
4153
4151
|
it('enforces source placement, exports, readonly contracts, and syntax law', () => {
|
|
4154
4152
|
{{workspacePolicyAssertion}}
|
|
4155
|
-
})
|
|
4156
|
-
{{browserPolicyTest}}
|
|
4153
|
+
}){{browserPolicyTest}}
|
|
4157
4154
|
})
|
|
4158
4155
|
`
|
|
4159
4156
|
}),
|
|
@@ -8652,8 +8649,8 @@ function testArtifacts(spec, pascal) {
|
|
|
8652
8649
|
const hasBrowser = spec.src.includes("browser") || spec.app.includes("browser");
|
|
8653
8650
|
const hasVue = spec.app.includes("browser");
|
|
8654
8651
|
const browserPolicySpecifier = hasBrowser ? ", accessSync, constants as FS_CONSTANTS, statSync" : "";
|
|
8655
|
-
const browserPolicyImport = hasBrowser ? "
|
|
8656
|
-
const vuePolicyImport = hasVue ? "
|
|
8652
|
+
const browserPolicyImport = hasBrowser ? "\nimport { chromium } from 'playwright'\nimport { resolveChromium } from '../vite.config.js'" : "";
|
|
8653
|
+
const vuePolicyImport = hasVue ? "\nimport { parse as parseVue } from 'vue/compiler-sfc'" : "";
|
|
8657
8654
|
const workspacePolicyAssertion = hasVue ? `expect(
|
|
8658
8655
|
inspectCodingWorkspace(process.cwd(), (path, content) => {
|
|
8659
8656
|
const parsed = parseVue(content, { filename: path })
|
|
@@ -8664,6 +8661,7 @@ function testArtifacts(spec, pascal) {
|
|
|
8664
8661
|
}),
|
|
8665
8662
|
).toEqual([])` : "expect(inspectCodingWorkspace(process.cwd())).toEqual([])";
|
|
8666
8663
|
const browserPolicyTest = hasBrowser ? `
|
|
8664
|
+
|
|
8667
8665
|
it('resolves Chromium only to a real executable file', () => {
|
|
8668
8666
|
const chromiumPath = resolveChromium(chromium.executablePath())
|
|
8669
8667
|
if (chromiumPath === undefined) return
|