Chore: Move most types from rrweb to @rrweb/types package (#1031)
* Chore: Add move most types from rrweb to @rrweb/types package * Split off type imports * Split off type import to its own line * Get vite to generate type definitions * Apply formatting changes * noEmit not allowed in tsconfig, moved it to build step * Align version of @rrweb/types with main rrweb package Based on @mark-fenng's comments https://github.com/rrweb-io/rrweb/pull/1031/files#r1002298176 * Move up keywords
This commit is contained in:
49
packages/types/package.json
Normal file
49
packages/types/package.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "@rrweb/types",
|
||||
"version": "2.0.0-alpha.3",
|
||||
"keywords": [
|
||||
"rrweb",
|
||||
"@rrweb/types"
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc -noEmit && vite build",
|
||||
"check-types": "tsc -noEmit",
|
||||
"prepublish": "npm run build",
|
||||
"lint": "yarn eslint src/**/*.ts"
|
||||
},
|
||||
"homepage": "https://github.com/rrweb-io/rrweb/tree/main/packages/@rrweb/types#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/rrweb-io/rrweb/issues"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/rrweb-io/rrweb.git"
|
||||
},
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"main": "./dist/types.umd.cjs",
|
||||
"module": "./dist/types.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/types.js",
|
||||
"require": "./dist/types.umd.cjs"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"build",
|
||||
"dist"
|
||||
],
|
||||
"devDependencies": {
|
||||
"typescript": "^4.7.3",
|
||||
"vite": "^3.2.0-beta.2",
|
||||
"vite-plugin-dts": "^1.6.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"rrweb-snapshot": "^2.0.0-alpha.3"
|
||||
},
|
||||
"browserslist": [
|
||||
"supports es6-class"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user