Skip to content

Commit

Permalink
build: configure package distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagozf committed Apr 14, 2020
1 parent 627c1f1 commit 100c875
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 7 deletions.
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
"name": "rimo",
"version": "0.0.0",
"description": "",
"keywords": [],
"keywords": [
"rimo",
"domain",
"clean architecture",
"ddd"
],
"main": "dist/rimo.umd.js",
"module": "dist/rimo.es5.js",
"typings": "dist/types/rimo.d.ts",
"typings": "dist/src/rimo.d.ts",
"files": [
"dist"
],
Expand Down Expand Up @@ -64,6 +69,7 @@
"<rootDir>/src/$1"
]
},
"modulePathIgnorePatterns": ["<rootDir>/dist"],
"coveragePathIgnorePatterns": [
"rimo.ts",
"/node_modules/",
Expand Down Expand Up @@ -98,6 +104,7 @@
"@types/node": "^13.11.1",
"@types/shortid": "^0.0.29",
"all-contributors-cli": "^6.14.1",
"class-validator": "^0.11.1",
"colors": "^1.4.0",
"commitizen": "^4.0.4",
"coveralls": "^3.0.11",
Expand Down Expand Up @@ -129,8 +136,11 @@
"tslint": "^6.1.1",
"tslint-config-prettier": "^1.18.0",
"tslint-config-standard": "^9.0.0",
"ttypescript": "^1.5.10",
"type-fest": "^0.13.1",
"typedoc": "^0.17.4",
"typescript": "^3.8.3"
"typescript": "^3.8.3",
"typescript-transform-paths": "^1.1.14"
},
"dependencies": {}
}
11 changes: 8 additions & 3 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import commonjs from 'rollup-plugin-commonjs'
import sourceMaps from 'rollup-plugin-sourcemaps'
import camelCase from 'lodash.camelcase'
import typescript from 'rollup-plugin-typescript2'
import tsConfigPaths from 'rollup-plugin-ts-paths'
import json from 'rollup-plugin-json'

const pkg = require('./package.json')
Expand All @@ -25,8 +24,14 @@ export default {
// Allow json resolution
json(),
// Compile TypeScript files
tsConfigPaths(),
typescript({ useTsconfigDeclarationDir: true }),
typescript({
typescript: require('ttypescript'),
tsconfigDefaults: {
compilerOptions: {
plugins: [{ transform: 'typescript-transform-paths', afterDeclarations: true }],
},
},
}),
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
commonjs({
namedExports: {
Expand Down
45 changes: 44 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,11 @@
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e"
integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==

"@types/[email protected]":
version "10.11.3"
resolved "https://registry.yarnpkg.com/@types/validator/-/validator-10.11.3.tgz#945799bef24a953c5bc02011ca8ad79331a3ef25"
integrity sha512-GKF2VnEkMmEeEGvoo03ocrP9ySMuX1ypKazIYMlsjfslfBMhOAtC5dmEWKdJioW4lJN7MZRS88kalTsVClyQ9w==

"@types/yargs-parser@*":
version "15.0.0"
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-15.0.0.tgz#cb3f9f741869e20cce330ffbeb9271590483882d"
Expand Down Expand Up @@ -2267,6 +2272,15 @@ class-utils@^0.3.5:
isobject "^3.0.0"
static-extend "^0.1.1"

class-validator@^0.11.1:
version "0.11.1"
resolved "https://registry.yarnpkg.com/class-validator/-/class-validator-0.11.1.tgz#9033b9ebdc3883e826dfc0c545a45935e3298553"
integrity sha512-6CGdjwJLmKw+sQbK5ZDo1v1yTajkqfPOUDWSYVIlhUiCh6Phy8sAnMFE2XKHAcKAdoOz4jJUQhjPQWPYUuHxrA==
dependencies:
"@types/validator" "10.11.3"
google-libphonenumber "^3.1.6"
validator "12.0.0"

clean-stack@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b"
Expand Down Expand Up @@ -3863,6 +3877,11 @@ globby@^11.0.0:
merge2 "^1.3.0"
slash "^3.0.0"

google-libphonenumber@^3.1.6:
version "3.2.8"
resolved "https://registry.yarnpkg.com/google-libphonenumber/-/google-libphonenumber-3.2.8.tgz#fb5898cbae18104d456e0fd80df52d860a3eb2b8"
integrity sha512-iWs1KcxOozmKQbCeGjvU0M7urrkNjBYOSBtb819RjkUNJHJLfn7DADKkKwdJTOMPLcLOE11/4h/FyFwJsTiwLg==

got@^6.7.1:
version "6.7.1"
resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0"
Expand Down Expand Up @@ -7571,7 +7590,7 @@ [email protected]:
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=

[email protected], [email protected], resolve@^1.1.6, resolve@^1.10.0, resolve@^1.11.0, resolve@^1.11.1, resolve@^1.15.1, resolve@^1.3.2:
[email protected], [email protected], resolve@^1.1.6, resolve@^1.10.0, resolve@^1.11.0, resolve@^1.11.1, resolve@^1.15.1, resolve@^1.3.2, resolve@^1.9.0:
version "1.15.1"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.15.1.tgz#27bdcdeffeaf2d6244b95bb0f9f4b4653451f3e8"
integrity sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==
Expand Down Expand Up @@ -8745,6 +8764,13 @@ tsutils@^3.0.0:
dependencies:
tslib "^1.8.1"

ttypescript@^1.5.10:
version "1.5.10"
resolved "https://registry.yarnpkg.com/ttypescript/-/ttypescript-1.5.10.tgz#5045083a91cf09a735ecc95d4711c1f3b83f2059"
integrity sha512-Hk7TRej1hM+p+Fo+Pyb/XK9pe9CAt3Sh5n5YRutxFS8hUgkh2u1Vd2K40kMcNP3WYhiVFBMqXwM/2E8O95Ep6g==
dependencies:
resolve "^1.9.0"

tunnel-agent@^0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
Expand Down Expand Up @@ -8779,6 +8805,11 @@ type-fest@^0.12.0:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.12.0.tgz#f57a27ab81c68d136a51fd71467eff94157fa1ee"
integrity sha512-53RyidyjvkGpnWPMF9bQgFtWp+Sl8O2Rp13VavmJgfAP9WWG6q6TkrKU8iyJdnwnfgHI6k2hTlgqH4aSdjoTbg==

type-fest@^0.13.1:
version "0.13.1"
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.13.1.tgz#0172cb5bce80b0bd542ea348db50c7e21834d934"
integrity sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==

type-fest@^0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b"
Expand Down Expand Up @@ -8824,6 +8855,13 @@ typedoc@^0.17.4:
shelljs "^0.8.3"
typedoc-default-themes "^0.10.0"

typescript-transform-paths@^1.1.14:
version "1.1.14"
resolved "https://registry.yarnpkg.com/typescript-transform-paths/-/typescript-transform-paths-1.1.14.tgz#4a3800a04977a527270980488f9c93055a31e474"
integrity sha512-oUXMH4D+GSqr/tGMlQVOB0RC9IUj1NokQVzRSbD+YeER5gR/U7vqj8KKrwuRSGd1xgKP/St+HjM8zoB57wVGDA==
dependencies:
slash "^3.0.0"

typescript@^3.8.3:
version "3.8.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061"
Expand Down Expand Up @@ -9060,6 +9098,11 @@ validate-npm-package-name@^3.0.0, validate-npm-package-name@~3.0.0:
dependencies:
builtins "^1.0.3"

[email protected]:
version "12.0.0"
resolved "https://registry.yarnpkg.com/validator/-/validator-12.0.0.tgz#fb33221f5320abe2422cda2f517dc3838064e813"
integrity sha512-r5zA1cQBEOgYlesRmSEwc9LkbfNLTtji+vWyaHzRZUxCTHdsX3bd+sdHfs5tGZ2W6ILGGsxWxCNwT/h3IY/3ng==

[email protected]:
version "1.10.0"
resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400"
Expand Down

0 comments on commit 100c875

Please sign in to comment.