Changed back to prebuilt but this time it will build on install to allow theme.styl

Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
2021-03-30 15:30:26 +02:00
parent 6c2b3466ba
commit 2569db42f8
6 changed files with 784 additions and 42 deletions

View File

@ -2,8 +2,8 @@
"name": "@dzeio/components",
"version": "0.5.2",
"license": "MIT",
"main": "./src/index.mjs",
"types": "./src/index.d.ts",
"main": "./index.mjs",
"types": "./types/index.d.ts",
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/preset-env": "^7.12.16",
@ -21,10 +21,8 @@
"react-dom": "^17.0.1",
"react-feather": "^2.0.9",
"style-loader": "^2.0.0",
"stylus": "^0.54.8",
"stylus-loader": "^4.3.3",
"ts-loader": "^8.0.17",
"typescript": "^4.1.3",
"webpack": "^4.44.2"
},
"peerDependencies": {
@ -34,8 +32,16 @@
"react-feather": "^2.0.9"
},
"scripts": {
"storybook": "rm -rf src/dzeio/**/*.js && start-storybook -p 6006",
"build": "tsc && mv src/index.js src/index.mjs",
"prepublishOnly": "yarn build"
"dev": "rm -rf src/dzeio/**/*.js && start-storybook -p 6006",
"build": "rollup --config",
"prepublishOnly": "yarn build",
"postinstall": "rollup --config"
},
"dependencies": {
"rollup": "^2.44.0",
"rollup-plugin-styles": "^3.14.1",
"rollup-plugin-typescript2": "^0.30.0",
"stylus": "^0.54.8",
"typescript": "^4.2.3"
}
}