Skip to content

Commit

Permalink
add build result to .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenlu committed Oct 3, 2023
1 parent 7b8c1a3 commit e6160dd
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 168 deletions.
31 changes: 3 additions & 28 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,6 @@ jobs:
- name: Lint check
run: npm run fmt-check
working-directory: ./ts
build-ts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.16.0
- name: Cache node modules
uses: actions/cache@v3
with:
path: ./ts/node_modules
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: node_modules-
- name: Install
run: npm install
working-directory: ./ts
- name: Build Typescript Files
run: npm run build
working-directory: ./ts
- name: Verify migrations generated
run: |
status=$(git status --porcelain)
if [ -n "$status" ]; then
echo "you need to run 'npm run build' and commit the changes"
echo "$status"
git --no-pager diff
exit 1
fi
integration-tests:
strategy:
matrix:
Expand All @@ -73,6 +45,9 @@ jobs:
- name: Install
run: npm install
working-directory: ./ts
- name: Build Typescript Files
run: npm run build
working-directory: ./ts
- uses: ariga/setup-atlas@master
- name: Run Test as Standalone
# TODO: remove this when we have a standalone binary for js
Expand Down
3 changes: 0 additions & 3 deletions ts/dist/load.d.ts

This file was deleted.

129 changes: 0 additions & 129 deletions ts/dist/load.js

This file was deleted.

2 changes: 1 addition & 1 deletion ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"scripts": {
"fmt": "eslint src/**.ts --fix && prettier --write src/**.ts",
"fmt-check": "eslint src/**.ts --max-warnings=0 && prettier --check src/**.ts",
"build": "tsc -d src/load.ts --outDir dist"
"build": "tsc -d src/load.ts --outDir build"
}
}
2 changes: 1 addition & 1 deletion ts/testdata/atlas-script.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ env "typeorm" {
diff = "{{ sql . \" \" }}"
}
}
}
}
2 changes: 1 addition & 1 deletion ts/testdata/js/atlas-script.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ env "typeorm" {
diff = "{{ sql . \" \" }}"
}
}
}
}
2 changes: 1 addition & 1 deletion ts/testdata/js/entities/Category.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ module.exports = {
type: "varchar"
}
}
};
};
2 changes: 1 addition & 1 deletion ts/testdata/js/entities/Post.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ module.exports = {
cascade: true
}
}
};
};
2 changes: 1 addition & 1 deletion ts/testdata/js/load-entities.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /usr/bin/env node

const loadEntities = require("../../dist/load").loadEntities;
const loadEntities = require("../../build/load").loadEntities;
const EntitySchema = require("typeorm").EntitySchema;

// parse the second argument as the dialect
Expand Down
3 changes: 1 addition & 2 deletions ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"outDir": "./build",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"allowJs": true,
"sourceMap": true
}
}

0 comments on commit e6160dd

Please sign in to comment.