Skip to content

Commit

Permalink
Merge pull request #551 from webkom/build-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LudvigHz authored Aug 10, 2022
2 parents 46d8671 + 7379e38 commit 958f842
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
16 changes: 14 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,22 @@
"version": "2.0.0",
"description": "A React editor written in TS with slate.js for lego-webapp",
"type": "module",
"main": "dist/lego-editor.js",
"main": "./dist/lego-editor.umd.cjs",
"module": "./dist/lego-editor.js",
"style": "dist/style.css",
"files": [
"dist/**/*"
"dist"
],
"exports": {
".": {
"import": "./dist/lego-editor.js",
"require": "./dist/lego-editor.umd.cjs"
},
"./dist/style.css": {
"import": "./dist/style.css",
"require": "./dist/style.css"
}
},
"types": "dist/index.d.ts",
"scripts": {
"prepublish": "yarn ts && yarn build",
Expand Down
1 change: 1 addition & 0 deletions src/components/Toolbar.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import '../variables.css';

._legoEditor_Toolbar_root {
z-index: 2;
border-bottom: 1px solid var(--color-mono-gray-4);
padding-left: 10px;
position: sticky;
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, 'src/index.tsx'),
formats: ['es'],
name: 'lego-editor',
},
sourcemap: true,
rollupOptions: {
Expand Down

0 comments on commit 958f842

Please sign in to comment.