|
13 | 13 | "bin": { |
14 | 14 | "config-sync": "./bin/config-sync" |
15 | 15 | }, |
| 16 | + "exports": { |
| 17 | + "./strapi-admin": { |
| 18 | + "source": "./admin/src/index.js", |
| 19 | + "import": "./dist/admin/index.mjs", |
| 20 | + "require": "./dist/admin/index.js", |
| 21 | + "default": "./dist/admin/index.js" |
| 22 | + }, |
| 23 | + "./strapi-server": { |
| 24 | + "source": "./server/index.js", |
| 25 | + "import": "./dist/server/index.mjs", |
| 26 | + "require": "./dist/server/index.js", |
| 27 | + "default": "./dist/server/index.js" |
| 28 | + }, |
| 29 | + "./package.json": "./package.json" |
| 30 | + }, |
16 | 31 | "scripts": { |
17 | | - "develop": "nodemon -e js,jsx --ignore playground --exec \"yalc publish && yalc push\"", |
18 | | - "build": "yalc push --publish", |
| 32 | + "develop": "strapi-plugin watch:link", |
| 33 | + "watch": "pack-up watch", |
| 34 | + "build": "pack-up build && yalc push --publish", |
19 | 35 | "eslint": "eslint --max-warnings=0 './**/*.{js,jsx}'", |
20 | 36 | "eslint:fix": "eslint --fix './**/*.{js,jsx}'", |
21 | 37 | "test:unit": "jest --verbose", |
|
52 | 68 | } |
53 | 69 | ], |
54 | 70 | "files": [ |
55 | | - "admin", |
56 | | - "server", |
57 | | - "bin", |
58 | | - "strapi-admin.js", |
59 | | - "strapi-server.js" |
| 71 | + "dist", |
| 72 | + "bin" |
60 | 73 | ], |
61 | 74 | "peerDependencies": { |
62 | | - "@strapi/strapi": "^5.0.0" |
| 75 | + "@strapi/strapi": "^5.0.0", |
| 76 | + "react": "^17.0.0 || ^18.0.0", |
| 77 | + "react-dom": "^17.0.0 || ^18.0.0", |
| 78 | + "react-router-dom": "^5.2.0", |
| 79 | + "styled-components": "^5.2.1" |
63 | 80 | }, |
64 | 81 | "devDependencies": { |
65 | 82 | "@strapi/design-system": "2.0.0-rc.11", |
66 | 83 | "@strapi/icons": "2.0.0-rc.11", |
| 84 | + "@strapi/sdk-plugin": "^5.2.7", |
67 | 85 | "@strapi/strapi": "5.0.4", |
68 | 86 | "@strapi/utils": "5.0.4", |
69 | 87 | "babel-eslint": "9.0.0", |
|
0 commit comments