diff --git a/.circleci/config.yml b/.circleci/config.yml index 37e52e994..61b6a3570 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,15 +3,15 @@ version: 2 aliases: - &restore-cache restore_cache: - key: dependency-cache-{{ checksum "package.json" }} + key: dependency-cache-{{ checksum "package.json" }} - &install-deps run: - name: Install dependencies - command: npm ci + name: Install dependencies + command: npm ci - &build-packages run: - name: Build - command: npm run build + name: Build + command: npm run build jobs: build: @@ -34,24 +34,24 @@ jobs: - ./node_modules - run: name: Build - command: npm run build + command: npm run build integration_tests: working_directory: ~/nest machine: true steps: - checkout - - run: + - run: name: Prepare nvm command: | echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV - - run: + - run: name: Upgrade Node.js command: | - nvm install v12 + nvm install v16 node -v - nvm alias default v12 + nvm alias default v16 - run: name: Install Docker Compose command: | @@ -79,4 +79,3 @@ workflows: - integration_tests: requires: - build - diff --git a/package.json b/package.json index 98af9c611..dca953c94 100644 --- a/package.json +++ b/package.json @@ -53,8 +53,8 @@ "uuid": "9.0.0" }, "peerDependencies": { - "@nestjs/common": "^8.0.0 || ^9.0.0", - "@nestjs/core": "^8.0.0 || ^9.0.0", + "@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0", + "@nestjs/core": "^8.0.0 || ^9.0.0 || ^10.0.0", "reflect-metadata": "^0.1.13", "rxjs": "^7.2.0", "typeorm": "^0.3.0" diff --git a/tsconfig.json b/tsconfig.json index b72c11420..42de58231 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": false, "outDir": "./dist", "rootDir": "./lib",