Commit da236cd1 authored by Mickaël Bourgier's avatar Mickaël Bourgier
Browse files

📦 Compile source files with Typescript

parent 8266e578
......@@ -26,16 +26,14 @@
"main": "dist/cjs/index.js",
"module": "dist/es/index.js",
"scripts": {
"build": "rm -rf dist && yarn build:cjs && yarn build:es",
"build:cjs": "BABEL_ENV=cjs babel src --out-dir dist/cjs",
"build:es": "BABEL_ENV=es babel src --out-dir dist/es",
"build": "rm -rf dist && tsc --rootDir ./src --outDir ./dist --declaration",
"dev": "WEBPACK_TARGET=docs yarn docs:dev",
"docs:build": "rm -rf docs/dist && NODE_ENV=production WEBPACK_TARGET=docs webpack",
"docs:dev": "webpack-dev-server --hot",
"lint": "eslint './docs/**/*.{js,ts,tsx}' './src/**/*.{js,ts,tsx}'",
"prepublishOnly": "yarn prettier && yarn lint && yarn build",
"prettier": "prettier --write './src/**/*.js' './docs/**/*.js'",
"prettier:check": "prettier --check './src/**/*.js' './docs/**/*.js'",
"prepublishOnly": "yarn prettier:check && yarn lint && yarn build",
"prettier": "prettier --write './src/**/*.{js,ts,tsx}' './docs/**/*.{js,ts,tsx}'",
"prettier:check": "prettier --check './src/**/*.{js,ts,tsx}' './docs/**/*.{js,ts,tsx}'",
"test": "jest"
"peerDependencies": {
......@@ -8,7 +8,8 @@
"@webalt/react/*": ["src/*"],
"__config/*": ["docs/config/*"],
"__src/*": ["docs/src/*"]
"sourceMap": true
"exclude": ["src/**/*.test.*", "src/**/demos/*"],
"include": ["src/**/*"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment