Skip to content

Commit

Permalink
feat(package.json): adding tslib package as dep for CJS bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
willmendesneto committed Oct 26, 2019
1 parent 3732fcd commit d0d9c67
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"moduleId": "PerfMarks",
"plugins": ["@babel/plugin-transform-modules-umd"],
"presets": [
[
"@babel/preset-env",
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Fixing ignored files list

### Updated

- Updating UMD id for package

### Added

- Adding `tslib` for CJS bundle version

## [1.3.1][] - 2019-10-23

### Fixed
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"timing",
"api"
],
"dependencies": {},
"dependencies": {
"tslib": "^1.10.0"
},
"devDependencies": {
"@babel/cli": "^7.6.4",
"@babel/core": "^7.6.4",
Expand Down Expand Up @@ -59,10 +61,10 @@
"compile": "tsc",
"clean": "rm -rf ./dist ./.jest ./coverage ./lib ./marks.* ./entries.*",
"clean:entrypoints": "rm -rf ./marks.* ./entries.*",
"build": "yarn build:es2015 && yarn build:cjs && yarn build:esm && yarn build:umd",
"build": "yarn build:es2015 && yarn build:cjs && yarn build:esm && yarn build:umd && yarn build:entrypoints:clean && yarn build:entrypoints",
"build:umd": "tsc --module esnext --target ES5 --outDir dist/umd && babel dist/umd --out-dir dist/umd",
"build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015",
"build:esm": "tsc --module esnext --target esnext --outDir dist/esm && yarn build:entrypoints:clean && yarn build:entrypoints",
"build:esm": "tsc --module esnext --target esnext --outDir dist/esm",
"build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs",
"build:entrypoints:clean": "rm -rf ./dist/umd/entrypoints ./dist/cjs/entrypoints ./dist/es2015/entrypoints",
"build:entrypoints": "node ./scripts/build-entrypoints.js",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"esModuleInterop": true,
"experimentalDecorators": true,
"downlevelIteration": true,
// https://github.com/angular/angular-cli/issues/13886#issuecomment-471927518
"importHelpers": true,
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6356,7 +6356,7 @@ ts-node@^8.4.1:
source-map-support "^0.5.6"
yn "^3.0.0"

tslib@^1.8.1, tslib@^1.9.0:
tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0:
version "1.10.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==
Expand Down

0 comments on commit d0d9c67

Please sign in to comment.