From 7af6cd952f411dffacbf27726237200f424033f9 Mon Sep 17 00:00:00 2001 From: MrWangJustToDo <2711470541@qq.com> Date: Tue, 10 Dec 2024 16:40:44 +0800 Subject: [PATCH] init --- packages/angular/package.json | 70 +++++++++++++++++++++++++++++++++++ packages/svelte/package.json | 70 +++++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 packages/angular/package.json create mode 100644 packages/svelte/package.json diff --git a/packages/angular/package.json b/packages/angular/package.json new file mode 100644 index 0000000..d82f321 --- /dev/null +++ b/packages/angular/package.json @@ -0,0 +1,70 @@ +{ + "name": "@git-diff-view/angular", + "description": "@git-diff-view/angular", + "author": "MrWangJustToDo", + "license": "MIT", + "version": "0.0.23", + "main": "index.js", + "types": "index.d.ts", + "files": [ + "dist", + "index.js", + "index.d.ts" + ], + "scripts": { + "gen:type": "dts-bundle-generator -o index.d.ts dist/types/index.d.ts", + "gen:css": "postcss src/style --dir dist/css" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/MrWangJustToDo/git-diff-view.git", + "directory": "packages/angular" + }, + "homepage": "https://github.com/MrWangJustToDo/git-diff-view", + "exports": { + ".": { + "require": "./index.js", + "types": "./index.d.ts", + "import": "./dist/esm/index.mjs" + }, + "./styles/*": "./dist/css/*", + "./package.json": "./package.json" + }, + "buildOptions": [ + { + "input": "./src/index.withStyle.ts", + "output": [ + { + "dir": "./dist", + "entryFileNames": "esm/index.mjs", + "format": "esm", + "sourcemap": true + } + ] + }, + { + "input": "./src/index.ts", + "output": [ + { + "dir": "./dist", + "entryFileNames": "cjs/index.js", + "format": "cjs", + "type": true, + "multiple": true, + "sourcemap": true + } + ] + } + ], + "keywords": [ + "diff component", + "angular diff component" + ], + "dependencies": { + "@git-diff-view/core": "^0.0.23", + "@types/hast": "^3.0.0", + "fast-diff": "^1.3.0", + "highlight.js": "^11.10.0", + "lowlight": "^3.2.0" + } +} diff --git a/packages/svelte/package.json b/packages/svelte/package.json new file mode 100644 index 0000000..6b32b7d --- /dev/null +++ b/packages/svelte/package.json @@ -0,0 +1,70 @@ +{ + "name": "@git-diff-view/svelte", + "description": "@git-diff-view/svelte", + "author": "MrWangJustToDo", + "license": "MIT", + "version": "0.0.23", + "main": "index.js", + "types": "index.d.ts", + "files": [ + "dist", + "index.js", + "index.d.ts" + ], + "scripts": { + "gen:type": "dts-bundle-generator -o index.d.ts dist/types/index.d.ts", + "gen:css": "postcss src/style --dir dist/css" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/MrWangJustToDo/git-diff-view.git", + "directory": "packages/svelte" + }, + "homepage": "https://github.com/MrWangJustToDo/git-diff-view", + "exports": { + ".": { + "require": "./index.js", + "types": "./index.d.ts", + "import": "./dist/esm/index.mjs" + }, + "./styles/*": "./dist/css/*", + "./package.json": "./package.json" + }, + "buildOptions": [ + { + "input": "./src/index.withStyle.ts", + "output": [ + { + "dir": "./dist", + "entryFileNames": "esm/index.mjs", + "format": "esm", + "sourcemap": true + } + ] + }, + { + "input": "./src/index.ts", + "output": [ + { + "dir": "./dist", + "entryFileNames": "cjs/index.js", + "format": "cjs", + "type": true, + "multiple": true, + "sourcemap": true + } + ] + } + ], + "keywords": [ + "diff component", + "svelte diff component" + ], + "dependencies": { + "@git-diff-view/core": "^0.0.23", + "@types/hast": "^3.0.0", + "fast-diff": "^1.3.0", + "highlight.js": "^11.10.0", + "lowlight": "^3.2.0" + } +}