Move abi-gen scripts to src
This commit is contained in:
		@@ -8,7 +8,7 @@
 | 
				
			|||||||
        "build:watch": "tsc -w",
 | 
					        "build:watch": "tsc -w",
 | 
				
			||||||
        "lint": "tslint --project . 'src/**/*.ts'",
 | 
					        "lint": "tslint --project . 'src/**/*.ts'",
 | 
				
			||||||
        "clean": "shx rm -rf lib",
 | 
					        "clean": "shx rm -rf lib",
 | 
				
			||||||
        "build": "tsc"
 | 
					        "build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "bin": {
 | 
					    "bin": {
 | 
				
			||||||
        "abi-gen": "lib/index.js"
 | 
					        "abi-gen": "lib/index.js"
 | 
				
			||||||
@@ -35,11 +35,13 @@
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "@0xproject/tslint-config": "^0.4.10",
 | 
					        "@0xproject/tslint-config": "^0.4.10",
 | 
				
			||||||
 | 
					        "@0xproject/dev-utils": "^0.2.1",
 | 
				
			||||||
        "@types/glob": "^5.0.33",
 | 
					        "@types/glob": "^5.0.33",
 | 
				
			||||||
        "@types/handlebars": "^4.0.36",
 | 
					        "@types/handlebars": "^4.0.36",
 | 
				
			||||||
        "@types/mkdirp": "^0.5.1",
 | 
					        "@types/mkdirp": "^0.5.1",
 | 
				
			||||||
        "@types/node": "^8.0.53",
 | 
					        "@types/node": "^8.0.53",
 | 
				
			||||||
        "@types/yargs": "^10.0.0",
 | 
					        "@types/yargs": "^10.0.0",
 | 
				
			||||||
 | 
					        "copyfiles": "^1.2.0",
 | 
				
			||||||
        "npm-run-all": "^4.1.2",
 | 
					        "npm-run-all": "^4.1.2",
 | 
				
			||||||
        "shx": "^0.2.2",
 | 
					        "shx": "^0.2.2",
 | 
				
			||||||
        "tslint": "5.8.0",
 | 
					        "tslint": "5.8.0",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +0,0 @@
 | 
				
			|||||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
 | 
					 | 
				
			||||||
const packageJSON = require('../package.json');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
const subPackageName = packageJSON.name;
 | 
					 | 
				
			||||||
postpublish_utils.standardPostPublishAsync(subPackageName);
 | 
					 | 
				
			||||||
							
								
								
									
										7
									
								
								packages/abi-gen/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								packages/abi-gen/src/globals.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -2,3 +2,10 @@ declare function toSnakeCase(str: string): string;
 | 
				
			|||||||
declare module 'to-snake-case' {
 | 
					declare module 'to-snake-case' {
 | 
				
			||||||
    export = toSnakeCase;
 | 
					    export = toSnakeCase;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					declare module '*.json' {
 | 
				
			||||||
 | 
					    const json: any;
 | 
				
			||||||
 | 
					    /* tslint:disable */
 | 
				
			||||||
 | 
					    export default json;
 | 
				
			||||||
 | 
					    /* tslint:enable */
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								packages/abi-gen/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								packages/abi-gen/src/monorepo_scripts/postpublish.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					import { postpublishUtils } from '@0xproject/dev-utils';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import * as packageJSON from '../package.json';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const subPackageName = (packageJSON as any).name;
 | 
				
			||||||
 | 
					postpublishUtils.standardPostPublishAsync(subPackageName);
 | 
				
			||||||
		Reference in New Issue
	
	Block a user