Skip to content

Commit

Permalink
87.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
silentsakky committed Sep 21, 2023
1 parent b8cd708 commit 660217c
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 142 deletions.
207 changes: 85 additions & 122 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "@zimbra/api-client",
"amdName": "zmApiJsClient",
"version": "86.1.0",
"version": "87.0.0",
"description": "Zimbra JS API Client and GraphQL client for making requests against the Zimbra SOAP API.",
"main": "dist/zm-api-js-client.js",
"source": "index.ts",
"module": "dist/zm-api-js-client.esm.js",
"umd:main": "dist/zm-api-js-client.umd.js",
Expand All @@ -18,11 +17,9 @@
"build": "npm-run-all clean generateSchemaTypes rollup:* -p build:ts minify:* copySchema",
"build:ts": "tsc --emitDeclarationOnly --declaration --outDir \"dist\"",
"copySchema": "copyfiles -f src/schema/schema.graphql dist",
"rollup:cjs": "cross-var rollup -c rollup.config.js -m -f cjs -n $npm_package_amdName $npm_package_source -o $npm_package_main",
"rollup:umd": "cross-var rollup -c rollup.config.js -m -f umd -n $npm_package_amdName $npm_package_source -o $npm_package_umd_main",
"rollup:esm": "cross-var rollup -c rollup.config.js -m -f es --environment FORMAT:es -n $npm_package_amdName $npm_package_source -o $npm_package_module",
"linkedBuild": "npm run rollup:esm -- --watch",
"minify:cjs": "cross-var uglifyjs $npm_package_main -c pure_getters,pure_funcs=classCallCheck -m toplevel,reserved=['_createClass'] --keep-fnames -o $npm_package_main --source-map content=$npm_package_main.map,url=zm-api-js-client.js.map,filename=$npm_package_main.map",
"minify:umd": "cross-var uglifyjs $npm_package_umd_main -c pure_getters,pure_funcs=classCallCheck -m toplevel,reserved=['_createClass'] --keep-fnames -o $npm_package_umd_main --source-map content=$npm_package_umd_main.map,url=zm-api-js-client.umd.js.map,filename=$npm_package_umd_main.map",
"size": "echo \"Gzipped Size: $(gzip-size $npm_package_main | pretty-bytes)\"",
"prepublishOnly": "npm test && npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags",
Expand Down Expand Up @@ -60,8 +57,6 @@
"@graphql-codegen/cli": "^2.6.2",
"@graphql-codegen/typescript": "^2.4.11",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.2",
"@types/graphql": "^14.5.0",
"@types/lodash": "^4.14.182",
Expand All @@ -81,6 +76,7 @@
"rollup": "^2.75.0",
"rollup-plugin-graphql": "^0.1.0",
"rollup-plugin-local-resolve": "^1.0.7",
"rollup-plugin-visualizer": "^5.9.2",
"tslib": "^2.5.0",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
Expand Down
21 changes: 7 additions & 14 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,32 @@ import babel from '@rollup/plugin-babel';
import typescript from '@rollup/plugin-typescript';
import graphql from 'rollup-plugin-graphql';
import localResolve from 'rollup-plugin-local-resolve';
import nodeResolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import { visualizer } from 'rollup-plugin-visualizer';
import pkg from './package.json';

let FORMAT = process.env.FORMAT;

// graphql-tools currently has a rollup build failure, so always call it an external until they fix it
// otherwise, make all npm production dependencies external, plus their subpath usages
// throughout the codebase, which rollup doesn't automatically pick up on
let external = FORMAT==='es' ?
Object.keys(pkg.dependencies)
.concat(
['castArray', 'get','isError', 'isObject', 'mapValues', 'reduce', 'omitBy', 'uniqBy', 'concat', 'uniqBy', 'differenceBy', 'forEach'].map(v => 'lodash/'+v),
['graphql']) :
[];

let external = (Object.keys(pkg.dependencies) || [])
.concat(
['castArray', 'get','isError', 'isObject', 'mapValues', 'reduce', 'omitBy', 'uniqBy', 'concat', 'uniqBy', 'differenceBy', 'forEach'].map(v => 'lodash/'+v)
);

export default {
external,
context: 'commonjsGlobal', // what should "this" be at the top level when it is used by another module
plugins: [
graphql(),
localResolve(),
nodeResolve({
extensions: [ '.js', '.ts', '.json' ]
}),
commonjs(),
typescript(),
babel({
extensions: ['.ts'],
exclude: 'node_modules/**',
babelHelpers: 'bundled'
})
}),
visualizer()
],
output: {
exports: FORMAT==='es' ? null : 'named'
Expand Down

0 comments on commit 660217c

Please sign in to comment.