@qmuse/qmuse-cli 1.0.3-dev.5 → 1.0.3-dev.6

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.
@@ -179,7 +179,7 @@ async function sha256File(filePath) {
179
179
  }
180
180
  export async function preflightImport(directory) {
181
181
  const rootDir = path.resolve(directory);
182
- const files = await collectFiles(rootDir);
182
+ const files = (await collectFiles(rootDir)).sort((left, right) => Buffer.compare(Buffer.from(left.relativePath), Buffer.from(right.relativePath)));
183
183
  const packageFile = files.find(file => file.relativePath === 'package.json');
184
184
  if (!packageFile)
185
185
  throw new Error('一期仅支持包含 package.json 的 React 项目');
@@ -2,7 +2,7 @@ export const SOURCE_MANIFEST_PATH = '.local/qmuse-import/source-manifest-v1.json
2
2
  export function createSourceManifest(preflight) {
3
3
  return {
4
4
  version: 1,
5
- algorithm: 'sha256-path-content-v1',
5
+ algorithm: 'sha256-path-content-v2',
6
6
  sourceHash: preflight.sourceHash,
7
7
  fileCount: preflight.fileCount,
8
8
  totalBytes: preflight.totalBytes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qmuse/qmuse-cli",
3
- "version": "1.0.3-dev.5",
3
+ "version": "1.0.3-dev.6",
4
4
  "description": "将本地 React 项目安全导入 QMuse 的命令行客户端",
5
5
  "type": "module",
6
6
  "bin": {