From f7640d16864a40d185d4bfbbcc2baa7509b8eaae Mon Sep 17 00:00:00 2001 From: Zihua Li Date: Wed, 14 Sep 2022 00:07:14 +0800 Subject: [PATCH] TypeScript compatibility improvement --- .gitignore | 1 + .npmignore | 11 +++++++++++ package.json | 14 -------------- tsconfig.json | 1 - 4 files changed, 12 insertions(+), 15 deletions(-) create mode 100644 .npmignore diff --git a/.gitignore b/.gitignore index 336bd42e1f..6872500e89 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .* !.eslintrc.json !.eslintignore +!.npmignore /dist /node_modules diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000000..1046ffd86a --- /dev/null +++ b/.npmignore @@ -0,0 +1,11 @@ +*.ts +!*.d.ts +.* +Gemfile +Gemfile.lock +_develop +.github +.vscode +docs +test +tsconfig.json diff --git a/package.json b/package.json index c3bade7757..8dc8b2f4b4 100644 --- a/package.json +++ b/package.json @@ -5,20 +5,6 @@ "author": "Jason Chen ", "homepage": "http://quilljs.com", "main": "dist/quill.js", - "exports": { - ".": "./dist/quill.js", - "./core": "./dist/core.js", - "./blots/*": "./dist/blots/*.js", - "./formats/*": "./dist/formats/*.js", - "./modules/*": "./dist/modules/*.js", - "./themes/*": "./dist/themes/*.js", - "./ui/*": "./dist/ui/*.js", - "./assets/": "./assets/" - }, - "files": [ - "assets", - "dist" - ], "config": { "ports": { "proxy": "9000", diff --git a/tsconfig.json b/tsconfig.json index 66f5cefdc6..24ed67737a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "outDir": "./dist", "allowSyntheticDefaultImports": true, "target": "es6", "sourceMap": true,