Skip to content

Commit

Permalink
fix: build output
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Apr 20, 2020
1 parent 9c9b441 commit 25b8aec
Show file tree
Hide file tree
Showing 4 changed files with 1,561 additions and 68 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@
],
"scripts": {
"bootstrap": "yarn && yarn --cwd www",
"build": "rimraf lib && yarn build:cjs && yarn build:esm && yarn build:pick",
"build:cjs": "babel src -d lib/cjs && rollup src/popper.ts --file lib/cjs/popper.js --format cjs --name popper --plugin @rollup/plugin-node-resolve",
"build:esm": "babel src -d lib/esm --env-name esm",
"build:pick": "cherry-pick ../src --cjs-dir=cjs --esm-dir=esm --cwd=lib",
"build": "rimraf lib && 4c build src && yarn build:popper && yarn build:pick",
"build:pick": "cherry-pick --cwd=lib --input-dir=../src --cjs-dir=cjs --esm-dir=esm",
"build:popper": "rollup src/popper.ts --file lib/cjs/popper.js --format cjs --name popper --plugin @rollup/plugin-node-resolve",
"deploy-docs": "yarn --cwd www build --prefix-paths && gh-pages -d www/public",
"lint": "eslint www/*.js www/src src test *.js --ext .js,.ts,.tsx",
"prepublishOnly": "yarn build",
Expand Down Expand Up @@ -75,6 +74,7 @@
"react-dom": ">=16.3.0"
},
"devDependencies": {
"@4c/cli": "^2.1.7",
"@4c/rollout": "^2.1.6",
"@4c/tsconfig": "^0.3.1",
"@babel/cli": "^7.8.4",
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "@4c/tsconfig/web.json",
"compilerOptions": {
"rootDir": "."
"rootDir": "src",
"outDir": "lib"
},
"include": ["src", "www/src", "test"]
"include": ["src"]
}
8 changes: 8 additions & 0 deletions www/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "@4c/tsconfig/web.json",
"compilerOptions": {
"rootDir": "..",
"noImplicitAny": false
},
"include": ["src", "../src"]
}
Loading

0 comments on commit 25b8aec

Please sign in to comment.