Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06e8641028 | ||
|
|
320f0f207f |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
/.build
|
||||
/dist
|
||||
/dist-node
|
||||
/node_modules
|
||||
|
||||
*.log
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
## Note: This fork is for use in Signal Desktop.
|
||||
|
||||
It has just one change: moving from ESM to CJS
|
||||
|
||||
It's published as `@signalapp/parchment-cjs`.
|
||||
|
||||
# Parchment [](https://github.com/quilljs/parchment/actions?query=branch%3Amain)
|
||||
|
||||
Parchment is [Quill](https://quilljs.com)'s document model. It is a parallel tree structure to the DOM tree, and provides functionality useful for content editors, like Quill. A Parchment tree is made up of [Blots](#blots), which mirror a DOM node counterpart. Blots can provide structure, formatting, and/or content. [Attributors](#attributors) can also provide lightweight formatting information.
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
*/
|
||||
{
|
||||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
||||
"mainEntryPointFilePath": "dist/typings/src/parchment.d.ts",
|
||||
"mainEntryPointFilePath": "dist-node/src/parchment.d.ts",
|
||||
"dtsRollup": {
|
||||
"enabled": true,
|
||||
"untrimmedFilePath": "<projectFolder>/dist/parchment.d.ts"
|
||||
|
||||
17
package.json
17
package.json
@ -1,16 +1,13 @@
|
||||
{
|
||||
"name": "parchment",
|
||||
"version": "3.0.0",
|
||||
"name": "@signalapp/parchment-cjs",
|
||||
"version": "3.0.1",
|
||||
"description": "A document model for rich text editors",
|
||||
"author": "Jason Chen <jhchen7@gmail.com>",
|
||||
"homepage": "http://quilljs.com/docs/parchment",
|
||||
"main": "./dist/parchment.js",
|
||||
"types": "./dist/parchment.d.ts",
|
||||
"type": "module",
|
||||
"main": "./src/parchment.js",
|
||||
"types": "./src/parchment.d.ts",
|
||||
"sideEffects": false,
|
||||
"files": [
|
||||
"tsconfig.json",
|
||||
"dist",
|
||||
"src"
|
||||
],
|
||||
"devDependencies": {
|
||||
@ -38,11 +35,11 @@
|
||||
"license": "BSD-3-Clause",
|
||||
"repository": "github:quilljs/parchment",
|
||||
"scripts": {
|
||||
"build": "npm run build:bundle && npm run build:types",
|
||||
"clean": "del-cli dist dist-node src/**/*.js src/**/*.d.ts tests/**/*.js tests/**/*.d.ts",
|
||||
"build": "npm run clean && npm run build:bundle && npm run build:types",
|
||||
"build:bundle": "vite build",
|
||||
"build:types": "tsc --emitDeclarationOnly && api-extractor run && del-cli dist/typings",
|
||||
"build:types": "tsc --declaration && api-extractor run && cp package.json dist-node/ && cp LICENSE dist-node/ && cp README.md dist-node/ && del-cli dist-node/tests",
|
||||
"lint": "eslint 'src/**/*.ts' 'tests/**/*.ts'",
|
||||
"prepare": "npm run build",
|
||||
"test": "npm run test:unit",
|
||||
"test:unit": "vitest --typecheck",
|
||||
"test:pkg": "attw $(npm pack)"
|
||||
|
||||
@ -1,16 +1,15 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "es6",
|
||||
"target": "es6",
|
||||
"target": "ES2021",
|
||||
"lib": ["es2015", "dom", "dom.iterable"],
|
||||
"outDir": "./dist/esm",
|
||||
"declaration": true,
|
||||
"declarationDir": "./dist/typings",
|
||||
"outDir": "./dist-node",
|
||||
"strict": true,
|
||||
"moduleResolution": "Bundler",
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "node",
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"verbatimModuleSyntax": true
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["src", "tests"]
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user