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

Commit

Permalink
chore: Update build dir lib -> __build__ (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhinodavid authored Feb 17, 2023
1 parent 1f06180 commit 8f62ca0
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
- name: Save build artifacts
uses: actions/upload-artifact@v3
with:
name: lib
path: lib
name: __build__
path: __build__
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ typings/
.next

# compiled ts sources
/lib
__build__

# sqlite DB
db/database.sqlite
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CHANGELOG.md
lib
__build__
node_modules
generated-artifacts
generated-wrappers
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ COPY . .
RUN yarn build

EXPOSE 3000
CMD [ "node", "lib/src/index.js" ]
CMD echo "use docker CLI to specify a startup command"
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
"author": "Francesco Agosti <[email protected]>",
"license": "Apache-2.0",
"scripts": {
"clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers",
"clean:ts": "shx rm -rf lib",
"clean": "shx rm -rf __build__ test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers",
"clean:ts": "shx rm -rf __build__",
"pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy",
"build": "yarn pre_build && tsc -p tsconfig.json",
"build:ts": "tsc -b",
"compile": "sol-compiler",
"db:migrate": "./node_modules/.bin/typeorm migration:run --config ./lib/src/ormconfig.js ",
"db:migration:create": "./node_modules/.bin/typeorm migration:create --config ./lib/src/ormconfig.js ",
"db:migration:generate": "./node_modules/.bin/typeorm migration:generate --config ./lib/src/ormconfig.js ",
"db:revert": "./node_modules/.bin/typeorm migration:revert --config ./lib/src/ormconfig.js ",
"db:migrate": "./node_modules/.bin/typeorm migration:run --config ./__build__/src/ormconfig.js ",
"db:migration:create": "./node_modules/.bin/typeorm migration:create --config ./__build__/src/ormconfig.js ",
"db:migration:generate": "./node_modules/.bin/typeorm migration:generate --config ./__build__/src/ormconfig.js ",
"db:revert": "./node_modules/.bin/typeorm migration:revert --config ./__build__/src/ormconfig.js ",
"test_": "env-cmd -f ./test/test_env mocha --require source-map-support/register --require make-promises-safe --timeout 200000 --exit --bail",
"test": "yarn test:rest && yarn test:asset-swapper",
"test:rest": "env-cmd -f ./test/test_env mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/!(rfqt*)_test.js' 'lib/test/!(asset-swapper)/**/!(rfqt*)_test.js' --timeout 200000 --exit --bail",
"test:asset-swapper": "env-cmd -f ./test/test_env mocha --require source-map-support/register --require make-promises-safe 'lib/test/asset-swapper/**/*_test.js' --timeout 250000 --exit --bail",
"test:integration": "mocha --require source-map-support/register --require make-promises-safe 'lib/integration-test/**/*_test.js' --timeout 200000 --exit",
"test:rest": "env-cmd -f ./test/test_env mocha --require source-map-support/register --require make-promises-safe '__build__/test/**/!(rfqt*)_test.js' '__build__/test/!(asset-swapper)/**/!(rfqt*)_test.js' --timeout 200000 --exit --bail",
"test:asset-swapper": "env-cmd -f ./test/test_env mocha --require source-map-support/register --require make-promises-safe '__build__/test/asset-swapper/**/*_test.js' --timeout 250000 --exit --bail",
"test:integration": "mocha --require source-map-support/register --require make-promises-safe '__build__/integration-test/**/*_test.js' --timeout 200000 --exit",
"dev": "yarn clean:ts && nodemon -r dotenv/config src/index.ts | pino-pretty",
"dev:service:http": "yarn clean:ts && nodemon -r dotenv/config src/runners/http_service_runner.ts | pino-pretty",
"dev:service:sra_http": "yarn clean:ts && nodemon -r dotenv/config src/runners/http_sra_service_runner.ts | pino-pretty",
Expand All @@ -34,12 +34,12 @@
"prettier": "prettier --write ${npm_package_config_prettier_target} --config .prettierrc",
"prettier:ci": "prettier --list-different ${npm_package_config_prettier_target} --config .prettierrc",
"circular": "madge --circular --extensions ts ./",
"start": "node -r dotenv/config lib/src/index.js",
"start:service:http": "node -r dotenv/config lib/src/runners/http_service_runner.js",
"start:service:sra_http": "node -r dotenv/config lib/src/runners/http_sra_service_runner.js",
"start:service:swap_http": "node -r dotenv/config lib/src/runners/http_swap_service_runner.js",
"start:service:meta_transaction_http": "node -r dotenv/config lib/src/runners/http_meta_transaction_service_runner.js",
"start:service:rfq_maker_balance_cache": "node -r dotenv/config lib/src/runners/rfq_maker_balance_cache_runner.js",
"start": "node -r dotenv/config __build__/src/index.js",
"start:service:http": "node -r dotenv/config __build__/src/runners/http_service_runner.js",
"start:service:sra_http": "node -r dotenv/config __build__/src/runners/http_sra_service_runner.js",
"start:service:swap_http": "node -r dotenv/config __build__/src/runners/http_swap_service_runner.js",
"start:service:meta_transaction_http": "node -r dotenv/config __build__/src/runners/http_meta_transaction_service_runner.js",
"start:service:rfq_maker_balance_cache": "node -r dotenv/config __build__/src/runners/rfq_maker_balance_cache_runner.js",
"sampler-size": "jq .compilerOutput.evm.deployedBytecode.object -- test/generated-artifacts/ERC20BridgeSampler.json | echo $(( $(wc -c) / 2 - 1 ))",
"lint": "ts-prune -e && eslint src test && yarn prettier:ci"
},
Expand Down
2 changes: 1 addition & 1 deletion src/ormconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const config: ConnectionOptions | undefined =
max: 15,
statement_timeout: 10000,
},
migrations: ['./lib/migrations/*.js'],
migrations: ['./__build__/migrations/*.js'],
...(POSTGRES_READ_REPLICA_URIS
? {
replication: {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"module": "commonjs",
"lib": ["es2020", "dom"],
"target": "es2019",
"outDir": "lib",
"outDir": "__build__",
"strict": true,
"downlevelIteration": true,
"noUnusedLocals": false,
Expand Down

0 comments on commit 8f62ca0

Please sign in to comment.