diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-20 04:36:40 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-20 04:38:19 +0800 |
commit | 2d39329ee7aa570e8c2f97ac37fde18858a8ec43 (patch) | |
tree | fbeedd267614d821ede7cff58911486149b0f6ae /packages/sol-resolver | |
parent | 761b0063a088560a5a654ae69316efd26b45a3ba (diff) | |
download | dexon-sol-tools-2d39329ee7aa570e8c2f97ac37fde18858a8ec43.tar dexon-sol-tools-2d39329ee7aa570e8c2f97ac37fde18858a8ec43.tar.gz dexon-sol-tools-2d39329ee7aa570e8c2f97ac37fde18858a8ec43.tar.bz2 dexon-sol-tools-2d39329ee7aa570e8c2f97ac37fde18858a8ec43.tar.lz dexon-sol-tools-2d39329ee7aa570e8c2f97ac37fde18858a8ec43.tar.xz dexon-sol-tools-2d39329ee7aa570e8c2f97ac37fde18858a8ec43.tar.zst dexon-sol-tools-2d39329ee7aa570e8c2f97ac37fde18858a8ec43.zip |
Add monorepo-scripts to sol-resolver
Diffstat (limited to 'packages/sol-resolver')
-rw-r--r-- | packages/sol-resolver/package.json | 2 | ||||
-rw-r--r-- | packages/sol-resolver/src/monorepo_scripts/postpublish.ts | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/packages/sol-resolver/package.json b/packages/sol-resolver/package.json index 5b1c74279..0befb5cb6 100644 --- a/packages/sol-resolver/package.json +++ b/packages/sol-resolver/package.json @@ -9,7 +9,7 @@ "types": "lib/index.d.ts", "scripts": { "watch_without_deps": "tsc -w", - "build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts", + "build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts", "clean": "shx rm -rf lib scripts", "lint": "tslint --project .", "manual:postpublish": "yarn build; node ./scripts/postpublish.js" diff --git a/packages/sol-resolver/src/monorepo_scripts/postpublish.ts b/packages/sol-resolver/src/monorepo_scripts/postpublish.ts new file mode 100644 index 000000000..dcb99d0f7 --- /dev/null +++ b/packages/sol-resolver/src/monorepo_scripts/postpublish.ts @@ -0,0 +1,8 @@ +import { postpublishUtils } from '@0xproject/monorepo-scripts'; + +import * as packageJSON from '../package.json'; +import * as tsConfigJSON from '../tsconfig.json'; + +const cwd = `${__dirname}/..`; +// tslint:disable-next-line:no-floating-promises +postpublishUtils.runAsync(packageJSON, tsConfigJSON, cwd); |