move scripts to monorepro-scripts
This commit is contained in:
6
packages/tslint-config/monorepo_scripts/globals.d.ts
vendored
Normal file
6
packages/tslint-config/monorepo_scripts/globals.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
declare module '*.json' {
|
||||
const json: any;
|
||||
/* tslint:disable */
|
||||
export default json;
|
||||
/* tslint:enable */
|
||||
}
|
||||
6
packages/tslint-config/monorepo_scripts/postpublish.ts
Normal file
6
packages/tslint-config/monorepo_scripts/postpublish.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { postpublishUtils } from '@0xproject/monorepo-scripts';
|
||||
|
||||
import * as packageJSON from '../package.json';
|
||||
|
||||
const subPackageName = (packageJSON as any).name;
|
||||
postpublishUtils.standardPostPublishAsync(subPackageName);
|
||||
@@ -5,8 +5,8 @@
|
||||
"main": "tslint.json",
|
||||
"scripts": {
|
||||
"build:watch": "tsc -w",
|
||||
"build": "tsc",
|
||||
"clean": "shx rm -rf lib",
|
||||
"build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts",
|
||||
"clean": "shx rm -rf lib scripts",
|
||||
"lint": "tslint --project . 'rules/**/*.ts'"
|
||||
},
|
||||
"repository": {
|
||||
@@ -30,7 +30,9 @@
|
||||
},
|
||||
"homepage": "https://github.com/0xProject/0x-monorepo/packages/tslint-config/README.md",
|
||||
"devDependencies": {
|
||||
"@0xproject/monorepo-scripts": "^0.1.12",
|
||||
"@types/lodash": "^4.14.86",
|
||||
"copyfiles": "^1.2.0",
|
||||
"shx": "^0.2.2",
|
||||
"typescript": "2.7.1"
|
||||
},
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
const postpublish_utils = require('../../../scripts/postpublish_utils');
|
||||
const packageJSON = require('../package.json');
|
||||
|
||||
const subPackageName = packageJSON.name;
|
||||
postpublish_utils.standardPostPublishAsync(subPackageName);
|
||||
@@ -3,5 +3,5 @@
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
},
|
||||
"include": ["./rules/**/*"]
|
||||
"include": ["./rules/**/*", "./monorepo_scripts/**/*", "../../node_modules/web3-typescript-typings/index.d.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user