@vibecuting/video-project-helper 0.1.1

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/README.md ADDED
@@ -0,0 +1,14 @@
1
+ # @vibecuting/video-project-helper
2
+
3
+ 视频工程辅助包。
4
+
5
+ 职责:
6
+
7
+ - 作为可发布的 npm 包承载视频工程辅助逻辑
8
+ - 为视频工程模板、初始化、校验和后续命令封装预留入口
9
+ - 作为主工程之外的独立 helper 包,避免把视频工程辅助逻辑继续塞回主站代码里
10
+
11
+ 常用命令:
12
+
13
+ - `pnpm typecheck`
14
+ - `pnpm test`
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@vibecuting/video-project-helper",
3
+ "version": "0.1.1",
4
+ "type": "module",
5
+ "main": "src/index.ts",
6
+ "types": "src/index.ts",
7
+ "exports": {
8
+ ".": "./src/index.ts"
9
+ },
10
+ "publishConfig": {
11
+ "registry": "https://registry.npmjs.org",
12
+ "access": "public"
13
+ },
14
+ "scripts": {
15
+ "typecheck": "node ../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/tsc -p tsconfig.json --noEmit",
16
+ "test": "node ../../../node_modules/vitest/vitest.mjs run"
17
+ }
18
+ }
@@ -0,0 +1,7 @@
1
+ import { expect, test } from 'vitest'
2
+
3
+ import { videoProjectHelperPackageName } from './index'
4
+
5
+ test('exports the package name', () => {
6
+ expect(videoProjectHelperPackageName).toBe('@vibecuting/video-project-helper')
7
+ })
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export const videoProjectHelperPackageName = '@vibecuting/video-project-helper' as const
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../../tsconfig.packages.json",
3
+ "include": ["src/**/*.ts", "vitest.config.ts"]
4
+ }
@@ -0,0 +1,10 @@
1
+ import { defineConfig } from 'vitest/config'
2
+
3
+ export default defineConfig({
4
+ root: __dirname,
5
+ test: {
6
+ environment: 'node',
7
+ globals: true,
8
+ include: ['src/**/*.{test,spec}.{ts,tsx}'],
9
+ },
10
+ })