主要功能: - 修改RequirementModal支持12个订单班选择 - 添加OrderClassIconMap图标映射组件 - Store中添加selectedOrderClass状态管理 - WorkflowPage支持传递orderClass参数 - web_result添加URL参数切换功能 - 创建order-class-handler.js动态处理页面主题 技术改进: - 创建软链接关联订单班数据目录 - 生成wenlu.json和food.json数据结构 - 删除重复的web_result目录 - 添加测试页面test-order-class.html 影响范围: - 展会策划系统现支持12个订单班 - 结果展示页面自动适配不同订单班主题 - 用户可选择不同行业生成对应方案 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
89 lines
2.9 KiB
TypeScript
89 lines
2.9 KiB
TypeScript
/**
|
|
* Find the package.json file, either from a TypeScript file somewhere not
|
|
* in a 'dist' folder, or a built and/or installed 'dist' folder.
|
|
*
|
|
* Note: this *only* works if you build your code into `'./dist'`, and that the
|
|
* source path does not also contain `'dist'`! If you don't build into
|
|
* `'./dist'`, or if you have files at `./src/dist/dist.ts`, then this will
|
|
* not work properly!
|
|
*
|
|
* The default `pathFromSrc` option assumes that the calling code lives one
|
|
* folder below the root of the package. Otherwise, it must be specified.
|
|
*
|
|
* Example:
|
|
*
|
|
* ```ts
|
|
* // src/index.ts
|
|
* import { findPackageJson } from 'package-json-from-dist'
|
|
*
|
|
* const pj = findPackageJson(import.meta.url)
|
|
* console.log(`package.json found at ${pj}`)
|
|
* ```
|
|
*
|
|
* If the caller is deeper within the project source, then you must provide
|
|
* the appropriate fallback path:
|
|
*
|
|
* ```ts
|
|
* // src/components/something.ts
|
|
* import { findPackageJson } from 'package-json-from-dist'
|
|
*
|
|
* const pj = findPackageJson(import.meta.url, '../../package.json')
|
|
* console.log(`package.json found at ${pj}`)
|
|
* ```
|
|
*
|
|
* When running from CommmonJS, use `__filename` instead of `import.meta.url`
|
|
*
|
|
* ```ts
|
|
* // src/index.cts
|
|
* import { findPackageJson } from 'package-json-from-dist'
|
|
*
|
|
* const pj = findPackageJson(__filename)
|
|
* console.log(`package.json found at ${pj}`)
|
|
* ```
|
|
*/
|
|
export declare const findPackageJson: (from: string | URL, pathFromSrc?: string) => string;
|
|
/**
|
|
* Load the package.json file, either from a TypeScript file somewhere not
|
|
* in a 'dist' folder, or a built and/or installed 'dist' folder.
|
|
*
|
|
* Note: this *only* works if you build your code into `'./dist'`, and that the
|
|
* source path does not also contain `'dist'`! If you don't build into
|
|
* `'./dist'`, or if you have files at `./src/dist/dist.ts`, then this will
|
|
* not work properly!
|
|
*
|
|
* The default `pathFromSrc` option assumes that the calling code lives one
|
|
* folder below the root of the package. Otherwise, it must be specified.
|
|
*
|
|
* Example:
|
|
*
|
|
* ```ts
|
|
* // src/index.ts
|
|
* import { loadPackageJson } from 'package-json-from-dist'
|
|
*
|
|
* const pj = loadPackageJson(import.meta.url)
|
|
* console.log(`Hello from ${pj.name}@${pj.version}`)
|
|
* ```
|
|
*
|
|
* If the caller is deeper within the project source, then you must provide
|
|
* the appropriate fallback path:
|
|
*
|
|
* ```ts
|
|
* // src/components/something.ts
|
|
* import { loadPackageJson } from 'package-json-from-dist'
|
|
*
|
|
* const pj = loadPackageJson(import.meta.url, '../../package.json')
|
|
* console.log(`Hello from ${pj.name}@${pj.version}`)
|
|
* ```
|
|
*
|
|
* When running from CommmonJS, use `__filename` instead of `import.meta.url`
|
|
*
|
|
* ```ts
|
|
* // src/index.cts
|
|
* import { loadPackageJson } from 'package-json-from-dist'
|
|
*
|
|
* const pj = loadPackageJson(__filename)
|
|
* console.log(`Hello from ${pj.name}@${pj.version}`)
|
|
* ```
|
|
*/
|
|
export declare const loadPackageJson: (from: string | URL, pathFromSrc?: string) => any;
|
|
//# sourceMappingURL=index.d.ts.map
|