mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
feat(ql3): stage legacy data directory
This commit is contained in:
@@ -1790,9 +1790,14 @@ test('confines adoption and Package command authorities to owner CLI subpaths',
|
||||
lifecycleDirectory,
|
||||
'sqlite-adoption',
|
||||
);
|
||||
const dataDirectoryAdoptionDirectory = path.join(
|
||||
lifecycleDirectory,
|
||||
'data-directory-adoption',
|
||||
);
|
||||
const pluginPackageDirectory = path.join(sourceDirectory, 'plugin-package');
|
||||
fs.mkdirSync(lifecycleDirectory, { recursive: true });
|
||||
fs.mkdirSync(sqliteAdoptionDirectory, { recursive: true });
|
||||
fs.mkdirSync(dataDirectoryAdoptionDirectory, { recursive: true });
|
||||
fs.mkdirSync(pluginPackageDirectory, { recursive: true });
|
||||
fs.writeFileSync(
|
||||
path.join(lifecycleDirectory, 'adoption.ts'),
|
||||
@@ -1811,6 +1816,13 @@ test('confines adoption and Package command authorities to owner CLI subpaths',
|
||||
"import { forbidden } from '@qinglong/local-admin/runtime';",
|
||||
].join('\n'),
|
||||
);
|
||||
fs.writeFileSync(
|
||||
path.join(dataDirectoryAdoptionDirectory, 'staging.ts'),
|
||||
[
|
||||
"import { activation } from '@qinglong/local-admin/runtime';",
|
||||
"import { forbidden } from '@qinglong/local-admin';",
|
||||
].join('\n'),
|
||||
);
|
||||
const applicationCommandDirectory = path.join(
|
||||
sourceDirectory,
|
||||
'application-command',
|
||||
@@ -1880,8 +1892,12 @@ test('confines adoption and Package command authorities to owner CLI subpaths',
|
||||
},
|
||||
{
|
||||
code: 'FORBIDDEN_LOCAL_ADOPTION_CLI_AUTHORITY_IMPORT',
|
||||
file:
|
||||
'packages/ql3-local-owner-cli/src/lifecycle/sqlite-adoption/command.ts',
|
||||
file: 'packages/ql3-local-owner-cli/src/lifecycle/data-directory-adoption/staging.ts',
|
||||
specifier: '@qinglong/local-admin',
|
||||
},
|
||||
{
|
||||
code: 'FORBIDDEN_LOCAL_ADOPTION_CLI_AUTHORITY_IMPORT',
|
||||
file: 'packages/ql3-local-owner-cli/src/lifecycle/sqlite-adoption/command.ts',
|
||||
specifier: '@qinglong/local-admin/runtime',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -207,10 +207,10 @@ test('current QL3 workspace has exactly eighteen reviewed package boundaries', (
|
||||
rootSourceFileRoles: localOwnerCli.rootSourceFileRoles,
|
||||
},
|
||||
{
|
||||
sourceFiles: 118,
|
||||
sourceFiles: 122,
|
||||
rootSourceFiles: 1,
|
||||
rootSourceLines: 50,
|
||||
nestedSourceFiles: 117,
|
||||
nestedSourceFiles: 121,
|
||||
rootSourceFileRoles: { 'cli.ts': 'binary_entry' },
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user