Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Move declaration option into tsconfig.json from build script
Browse files Browse the repository at this point in the history
  • Loading branch information
haltman-at committed May 22, 2020
1 parent ecb2924 commit 76e9db9
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/artifactor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc --declaration",
"build": "tsc",
"prepare": "yarn build",
"test": "mocha"
},
Expand Down
1 change: 1 addition & 0 deletions packages/artifactor/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declaration": true,
"module": "commonjs",
"esModuleInterop": true,
"target": "es6",
Expand Down
2 changes: 1 addition & 1 deletion packages/blockchain-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"version": "0.0.19",
"main": "dist/index.js",
"scripts": {
"build": "tsc --declaration",
"build": "tsc",
"prepare": "yarn build",
"test": "mocha --exit -r ts-node/register test/**/*.test.ts"
},
Expand Down
1 change: 1 addition & 0 deletions packages/blockchain-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declaration": true,
"module": "commonjs",
"esModuleInterop": true,
"target": "es6",
Expand Down
2 changes: 1 addition & 1 deletion packages/box/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"version": "1.0.60",
"main": "dist/box.js",
"scripts": {
"build": "tsc --declaration",
"build": "tsc",
"prepare": "yarn build",
"test": "mocha --timeout 10000"
},
Expand Down
1 change: 1 addition & 0 deletions packages/box/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declaration": true,
"module": "commonjs",
"esModuleInterop": true,
"target": "es6",
Expand Down
2 changes: 1 addition & 1 deletion packages/code-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"version": "1.2.15",
"main": "dist/index.js",
"scripts": {
"build": "tsc --declaration",
"build": "tsc",
"prepare": "yarn build",
"test": "mocha --exit -r ts-node/register test/**/*.test.ts"
},
Expand Down
1 change: 1 addition & 0 deletions packages/code-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declaration": true,
"module": "commonjs",
"esModuleInterop": true,
"target": "es6",
Expand Down
4 changes: 2 additions & 2 deletions packages/codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"scripts": {
"docs": "./scripts/generate-docs",
"prepare": "yarn build",
"build": "ttsc --declaration",
"start": "ttsc --watch --declaration"
"build": "ttsc",
"start": "ttsc --watch"
},
"repository": "https://github.com/trufflesuite/truffle/tree/master/packages/codec",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc --declaration",
"build": "tsc",
"prepare": "yarn build",
"test": "yarn build && mocha --exit -r ts-node/register test/**/*.test.ts"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/decoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
},
"scripts": {
"prepare": "yarn build",
"build": "tsc --declaration",
"start": "tsc --watch --declaration",
"build": "tsc",
"start": "tsc --watch",
"test": "cd test/current && npx truffle test && cd ../legacy && npx truffle test"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/decoder/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declaration": true,
"module": "commonjs",
"esModuleInterop": true,
"target": "es5",
Expand Down
2 changes: 1 addition & 1 deletion packages/hdwallet-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"version": "1.0.35",
"main": "dist/index.js",
"scripts": {
"build": "tsc --declaration",
"build": "tsc",
"prepare": "yarn build",
"test": "yarn build && mocha --exit -r ts-node/register test/**/*.test.ts"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/interface-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"lib": "lib"
},
"scripts": {
"build": "tsc --declaration",
"build": "tsc",
"prepare": "yarn build",
"test": "mocha --exit -r ts-node/register test/**/*.test.ts",
"watch": "tsc -w --declaration"
"watch": "tsc -w"
},
"dependencies": {
"bn.js": "^4.11.8",
Expand Down
1 change: 1 addition & 0 deletions packages/interface-adapter/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declaration": true,
"module": "commonjs",
"esModuleInterop": true,
"target": "es6",
Expand Down
2 changes: 1 addition & 1 deletion packages/resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dist"
],
"scripts": {
"build": "tsc --declaration",
"build": "tsc",
"prepare": "yarn build",
"test": "mocha -r ts-node/register test/*.ts"
},
Expand Down

0 comments on commit 76e9db9

Please sign in to comment.