Skip to content

Commit

Permalink
fix: run prepublishOnly before publish (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Oct 11, 2023
1 parent 941d3d7 commit da3368e
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 551 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "yarn workspace gatsby-plugin-eufemia-theme-handler build && yarn workspace ui-theme-example build && yarn workspace ui-theme-example serve & yarn workspace sb-theme-example build",
"serve": "yarn workspace sb-theme-example serve & yarn workspace ui-theme-example serve",
"clean": "yarn workspace sb-theme-example clean & yarn workspace ui-theme-example clean",
"release": "yarn workspace gatsby-plugin-eufemia-theme-handler release"
"release": "yarn workspace gatsby-plugin-eufemia-theme-handler release",
"postinstall": "yarn workspace gatsby-plugin-eufemia-theme-handler build"
},
"devDependencies": {
"@dnb/eufemia": "10.7.0"
Expand Down
5 changes: 3 additions & 2 deletions packages/gatsby-plugin-eufemia-theme-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@
"build": "yarn build:cmd && GATSBY_FILES=true yarn build:cmd && yarn build:types",
"build:cmd": "yarn babel src --extensions .js,.ts,.tsx,.mjs --out-dir .",
"build:types": "tsc --project tsconfig.json",
"clean": "rm -rf themeHandler.js themeHandler.d.js load-eufemia-styles.js inlineScriptProd.js inlineScriptDev.js index.js gatsby-ssr.js gatsby-node.js gatsby-browser.js EventEmitter.js collectThemes.js",
"clean": "rm !(src|babel.config.js|.gitignore|LICENSE|.env|*.md|*.json)",
"watch": "yarn build --watch",
"test:types": "tsc --noEmit"
"test:types": "tsc --noEmit",
"postinstall": "yarn build"
},
"dependencies": {
"gatsby-core-utils": "4.12.0",
Expand Down
Loading

0 comments on commit da3368e

Please sign in to comment.