|
1 | 1 | { |
2 | 2 | "name": "letterpad-editor", |
3 | | - "version": "1.0.3", |
| 3 | + "version": "1.0.17", |
4 | 4 | "description": "The letterpad editor - A high level abstraction of draftjs with plugin architecture", |
5 | | - "main": "./dist/editor.js", |
| 5 | + "main": "./dist/letterpad-editor.js", |
| 6 | + "types": "./dist/letterpad-editor.d.ts", |
6 | 7 | "scripts": { |
7 | 8 | "start": "webpack serve --config webpack.config.demo.js", |
8 | 9 | "bundle": "webpack --config webpack.config.prod.js", |
9 | 10 | "bundle:demo": "webpack --config webpack.config.demo.js", |
10 | 11 | "build": "tsc --build tsconfig.build.json", |
11 | | - "prepublishOnly": "yarn clean && yarn bundle && yarn build && yarn copy-files", |
| 12 | + "prepublishOnly": "yarn clean && yarn bundle && yarn build", |
12 | 13 | "test": "echo \"Error: no test specified\" && exit 1", |
13 | 14 | "clean": "rimraf dist/", |
14 | | - "copy-files": "copyfiles -u 1 src/*.css src/**/*.css src/**/**/*.css dist/" |
| 15 | + "prettify": "npx prettier --write ./src" |
15 | 16 | }, |
16 | 17 | "files": [ |
17 | 18 | "dist", |
18 | 19 | "README.md", |
19 | 20 | "LICENSE", |
20 | 21 | "package.json", |
21 | | - "yarn.lock" |
| 22 | + "yarn.lock", |
| 23 | + "umd" |
22 | 24 | ], |
23 | 25 | "author": "Abhishek Saha", |
24 | 26 | "license": "ISC", |
25 | 27 | "dependencies": { |
26 | 28 | "@draft-js-plugins/anchor": "^4.1.3", |
27 | 29 | "@draft-js-plugins/counter": "^4.1.1", |
28 | 30 | "@draft-js-plugins/editor": "^4.1.0", |
| 31 | + "@draft-js-plugins/focus": "^4.1.2", |
29 | 32 | "@draft-js-plugins/hashtag": "^4.2.1", |
30 | 33 | "@draft-js-plugins/inline-toolbar": "^4.1.2", |
31 | 34 | "@draft-js-plugins/linkify": "^4.1.1", |
|
44 | 47 | "typescript": "^4.3.5" |
45 | 48 | }, |
46 | 49 | "devDependencies": { |
| 50 | + "@babel/core": "^7.15.0", |
| 51 | + "@babel/plugin-proposal-class-properties": "^7.14.5", |
| 52 | + "@babel/preset-env": "^7.15.0", |
| 53 | + "@babel/preset-react": "^7.14.5", |
47 | 54 | "@babel/preset-typescript": "^7.14.5", |
48 | | - "@draft-js-plugins/focus": "^4.1.2", |
49 | 55 | "@types/draft-convert": "^2.1.4", |
50 | 56 | "@types/draft-js": "^0.11.4", |
51 | 57 | "@types/prismjs": "^1.16.6", |
52 | 58 | "@types/react": "^17.0.14", |
53 | 59 | "@types/react-dom": "^17.0.9", |
| 60 | + "babel-loader": "^8.2.2", |
54 | 61 | "copyfiles": "^2.4.1", |
55 | 62 | "css-loader": "^5.2.6", |
56 | 63 | "html-webpack-plugin": "^5.3.2", |
|
0 commit comments