Skip to content

Commit

Permalink
feat(everything): distribute es2017 build
Browse files Browse the repository at this point in the history
affects: @esri/hub-annotations, @esri/hub-common, @esri/hub-content, @esri/hub-downloads,
@esri/hub-events, @esri/hub-initiatives, @esri/hub-search, @esri/hub-sites, @esri/hub-surveys,
@esri/hub-teams

ISSUES CLOSED: 488
  • Loading branch information
tomwayson committed Mar 15, 2021
1 parent 18c5682 commit 9755530
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 32 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@
]
},
"scripts": {
"build": "lerna run build",
"build": "npm run bootstrap && npm run build:umd && npm run build:es2017",
"build:es2017": "lerna run build:es2017",
"build:umd": "lerna run build:umd",
"clean": "npm run clean:dist & npm run clean:deps",
"clean:dist": "rm -rf packages/*/dist/",
"clean:deps": "rm -rf node_modules && rm -rf packages/*/node_modules/",
Expand Down Expand Up @@ -123,7 +125,7 @@
"gen-util": "yo ./scaffolder/index.js",
"precommit": "node exit-if-no-staged.js && lint-staged",
"bootstrap": "lerna bootstrap --hoist",
"prerelease:prepare": "git fetch --all && npm run clean:dist && npm run bootstrap && lerna run build:umd && npm test",
"prerelease:prepare": "git fetch --all && npm run clean:dist && npm run build && npm test",
"release:prepare": "lerna publish --skip-git --skip-npm --yes && node ./support/changelog.js",
"release:review": "git --no-pager diff --word-diff",
"release:publish": "./support/publish.sh",
Expand Down
7 changes: 4 additions & 3 deletions packages/annotations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/node/index.js",
"unpkg": "dist/umd/annotations.umd.js",
"module": "dist/esm/index.js",
"js:next": "dist/esm/index.js",
"es2017": "dist/es2017/index.js",
"sideEffects": false,
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
"dependencies": {
"tslib": "^1.13.0"
Expand Down Expand Up @@ -41,7 +41,8 @@
"scripts": {
"prepare": "npm run build",
"build": "npm run build:node && npm run build:esm",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration --declarationDir ./dist/types",
"build:es2017": "tsc --outDir ./dist/es2017",
"build:umd": "rollup -c ../../umd-base-profile.js && rollup -c ../../umd-production-profile.js",
"build:node": "tsc --module commonjs --outDir ./dist/node",
"dev:esm": "tsc -w --module es2015 --target es5 --outDir ./dist/esm --declaration",
Expand Down
7 changes: 4 additions & 3 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/node/index.js",
"unpkg": "dist/umd/common.umd.js",
"module": "dist/esm/index.js",
"js:next": "dist/esm/index.js",
"es2017": "dist/es2017/index.js",
"sideEffects": false,
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"author": "",
"license": "Apache-2.0",
"files": [
Expand Down Expand Up @@ -40,7 +40,8 @@
"scripts": {
"prepare": "npm run build",
"build": "npm run build:node && npm run build:esm",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration --declarationDir ./dist/types",
"build:es2017": "tsc --outDir ./dist/es2017",
"build:umd": "rollup -c ../../umd-base-profile.js && rollup -c ../../umd-production-profile.js",
"build:node": "tsc --module commonjs --outDir ./dist/node",
"dev:esm": "tsc -w --module es2015 --target es5 --outDir ./dist/esm --declaration",
Expand Down
7 changes: 4 additions & 3 deletions packages/content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/node/index.js",
"unpkg": "dist/umd/content.umd.js",
"module": "dist/esm/index.js",
"js:next": "dist/esm/index.js",
"es2017": "dist/es2017/index.js",
"sideEffects": false,
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
"dependencies": {
"fast-xml-parser": "~3.2.4",
Expand Down Expand Up @@ -39,7 +39,8 @@
"scripts": {
"prepare": "npm run build",
"build": "npm run build:node && npm run build:esm",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration --declarationDir ./dist/types",
"build:es2017": "tsc --outDir ./dist/es2017",
"build:umd": "rollup -c ../../umd-base-profile.js && rollup -c ../../umd-production-profile.js",
"build:node": "tsc --module commonjs --outDir ./dist/node",
"dev:esm": "tsc -w --module es2015 --target es5 --outDir ./dist/esm --declaration",
Expand Down
7 changes: 4 additions & 3 deletions packages/downloads/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/node/index.js",
"unpkg": "dist/umd/downloads.umd.js",
"module": "dist/esm/index.js",
"js:next": "dist/esm/index.js",
"es2017": "dist/es2017/index.js",
"sideEffects": false,
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
"dependencies": {
"@esri/arcgis-rest-feature-layer": "^2.21.0",
Expand Down Expand Up @@ -37,7 +37,8 @@
"scripts": {
"prepare": "npm run build",
"build": "npm run build:node && npm run build:esm",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration --declarationDir ./dist/types",
"build:es2017": "tsc --outDir ./dist/es2017",
"build:umd": "rollup -c ../../umd-base-profile.js && rollup -c ../../umd-production-profile.js",
"build:node": "tsc --module commonjs --outDir ./dist/node",
"dev:esm": "tsc -w --module es2015 --target es5 --outDir ./dist/esm --declaration",
Expand Down
7 changes: 4 additions & 3 deletions packages/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/node/index.js",
"unpkg": "dist/umd/events.umd.js",
"module": "dist/esm/index.js",
"js:next": "dist/esm/index.js",
"es2017": "dist/es2017/index.js",
"sideEffects": false,
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
"dependencies": {
"tslib": "^1.13.0"
Expand Down Expand Up @@ -41,7 +41,8 @@
"scripts": {
"prepare": "npm run build",
"build": "npm run build:node && npm run build:esm",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration --declarationDir ./dist/types",
"build:es2017": "tsc --outDir ./dist/es2017",
"build:umd": "rollup -c ../../umd-base-profile.js && rollup -c ../../umd-production-profile.js",
"build:node": "tsc --module commonjs --outDir ./dist/node",
"dev:esm": "tsc -w --module es2015 --target es5 --outDir ./dist/esm --declaration",
Expand Down
7 changes: 4 additions & 3 deletions packages/initiatives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/node/index.js",
"unpkg": "dist/umd/initiatives.umd.js",
"module": "dist/esm/index.js",
"js:next": "dist/esm/index.js",
"es2017": "dist/es2017/index.js",
"sideEffects": false,
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
"dependencies": {
"tslib": "^1.13.0"
Expand Down Expand Up @@ -38,7 +38,8 @@
"scripts": {
"prepare": "npm run build",
"build": "npm run build:node && npm run build:esm",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration --declarationDir ./dist/types",
"build:es2017": "tsc --outDir ./dist/es2017",
"build:umd": "rollup -c ../../umd-base-profile.js && rollup -c ../../umd-production-profile.js",
"build:node": "tsc --module commonjs --outDir ./dist/node",
"dev:esm": "tsc -w --module es2015 --target es5 --outDir ./dist/esm --declaration",
Expand Down
7 changes: 4 additions & 3 deletions packages/search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/node/index.js",
"unpkg": "dist/umd/search.umd.js",
"module": "dist/esm/index.js",
"js:next": "dist/esm/index.js",
"es2017": "dist/es2017/index.js",
"sideEffects": false,
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
"dependencies": {
"base-64": "^1.0.0",
Expand Down Expand Up @@ -45,7 +45,8 @@
"scripts": {
"prepare": "npm run build",
"build": "npm run build:node && npm run build:esm",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration --declarationDir ./dist/types",
"build:es2017": "tsc --outDir ./dist/es2017",
"build:umd": "rollup -c ../../umd-base-profile.js && rollup -c ../../umd-production-profile.js",
"build:node": "tsc --module commonjs --outDir ./dist/node",
"dev:esm": "tsc -w --module es2015 --target es5 --outDir ./dist/esm --declaration",
Expand Down
7 changes: 4 additions & 3 deletions packages/sites/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/node/index.js",
"unpkg": "dist/umd/sites.umd.js",
"module": "dist/esm/index.js",
"js:next": "dist/esm/index.js",
"es2017": "dist/es2017/index.js",
"sideEffects": false,
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
"dependencies": {
"tslib": "^1.13.0"
Expand Down Expand Up @@ -42,7 +42,8 @@
"scripts": {
"prepare": "npm run build",
"build": "npm run build:node && npm run build:esm",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration --declarationDir ./dist/types",
"build:es2017": "tsc --outDir ./dist/es2017",
"build:umd": "rollup -c ../../umd-base-profile.js && rollup -c ../../umd-production-profile.js",
"build:node": "tsc --module commonjs --outDir ./dist/node",
"dev:esm": "tsc -w --module es2015 --target es5 --outDir ./dist/esm --declaration",
Expand Down
7 changes: 4 additions & 3 deletions packages/surveys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/node/index.js",
"unpkg": "dist/umd/surveys.umd.js",
"module": "dist/esm/index.js",
"js:next": "dist/esm/index.js",
"es2017": "dist/es2017/index.js",
"sideEffects": false,
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
"dependencies": {
"tslib": "^1.13.0"
Expand Down Expand Up @@ -41,7 +41,8 @@
"scripts": {
"prepare": "npm run build",
"build": "npm run build:node && npm run build:esm",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration --declarationDir ./dist/types",
"build:es2017": "tsc --outDir ./dist/es2017",
"build:umd": "rollup -c ../../umd-base-profile.js && rollup -c ../../umd-production-profile.js",
"build:node": "tsc --module commonjs --outDir ./dist/node",
"dev:esm": "tsc -w --module es2015 --target es5 --outDir ./dist/esm --declaration",
Expand Down
7 changes: 4 additions & 3 deletions packages/teams/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/node/index.js",
"unpkg": "dist/umd/teams.umd.js",
"module": "dist/esm/index.js",
"js:next": "dist/esm/index.js",
"es2017": "dist/es2017/index.js",
"sideEffects": false,
"types": "dist/esm/index.d.ts",
"types": "dist/types/index.d.ts",
"license": "Apache-2.0",
"dependencies": {
"tslib": "^1.13.0"
Expand Down Expand Up @@ -39,7 +39,8 @@
"scripts": {
"prepare": "npm run build",
"build": "npm run build:node && npm run build:esm",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration",
"build:esm": "tsc --module es2015 --target es5 --outDir ./dist/esm --declaration --declarationDir ./dist/types",
"build:es2017": "tsc --outDir ./dist/es2017",
"build:umd": "rollup -c ../../umd-base-profile.js && rollup -c ../../umd-production-profile.js",
"build:node": "tsc --module commonjs --outDir ./dist/node",
"dev:esm": "tsc -w --module es2015 --target es5 --outDir ./dist/esm --declaration",
Expand Down

0 comments on commit 9755530

Please sign in to comment.