Creating a devtools package to compile packages with Webpack
The first package we need to create to be able to compile other packages is called devtools
and should be created in packages/devtools
. Let’s see how it should look in its package.json
file:
{
"name": "@web-creator/devtools",
"version": "1.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "npm-run-all clean compile",
"clean": "rm -rf ./dist",
"compile": "tsc",
"lint": "npm run --prefix ../../ lint",
"lint:fix": "npm run --prefix ../../ lint:fix"
},
"author": "Carlos Santana",
"license": "MIT",
"devDependencies": {
"@types/cli-color": "^2.0...