Skip to content

Commit

Permalink
fix: Change target back to ES2018
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Nov 1, 2020
1 parent 879be34 commit 671e6d3
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,24 @@
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["10", "12", "14"]
name: Node ${{ matrix.node }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install
run: npm i
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Lint
run: npm run lint
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Expand Up @@ -14,11 +14,11 @@ jobs:
uses: EndBug/version-check@v1
with:
diff-search: true
- name: Set up Node.js
- name: Set up Node
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v1
with:
node-version: "12"
node-version: "14"
- name: Install
if: steps.check.outputs.changed == 'true'
run: npm i
Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -73,7 +73,6 @@
"lint": "eslint . && prettier --check .",
"prepublishOnly": "node scripts/set_strict.js false && npm run lint && npm run build_and_test",
"postpublish": "node scripts/set_strict.js true",
"prepare": "npm run build",
"clean": "rm -rf node_modules package-lock.json lib coverage"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/lib/serialization/serializers/types/literal.ts
Expand Up @@ -19,7 +19,7 @@ export class LiteralTypeSerializer extends TypeSerializerComponent<
...obj,
value: {
value: type.value.toString().replace("-", ""),
negative: type.value < 0n,
negative: type.value < BigInt("0"),
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"module": "CommonJS",
"lib": ["ES2018"],
"target": "ES2020",
"target": "ES2018",

"experimentalDecorators": true,

Expand Down

0 comments on commit 671e6d3

Please sign in to comment.