From 609dbc01f9f559abe48e05a1441d66fd62c6f8ac Mon Sep 17 00:00:00 2001 From: Adriano Raiano Date: Mon, 16 Oct 2023 17:54:35 +0200 Subject: [PATCH] update project --- .travis.yml | 12 ------------ README.md | 1 - package.json | 40 ++++++++++++++++++++-------------------- rollup.config.js | 3 ++- tsconfig.json | 4 ++-- 5 files changed, 24 insertions(+), 36 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ba44a1f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -sudo: false -language: node_js -node_js: -- '14' -- '16' -- '18' -branches: - only: - - main -notifications: - email: - - adriano@raiano.ch \ No newline at end of file diff --git a/README.md b/README.md index bcac70c..0a82b3f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![Actions](https://github.com/i18next/i18next-resources-to-backend/workflows/node/badge.svg)](https://github.com/i18next/i18next-resources-to-backend/actions?query=workflow%3Anode) [![Actions deno](https://github.com/i18next/i18next-resources-to-backend/workflows/deno/badge.svg)](https://github.com/i18next/i18next-resources-to-backend/actions?query=workflow%3Adeno) -[![Travis](https://img.shields.io/travis/i18next/i18next-resources-to-backend/master.svg?style=flat-square)](https://travis-ci.org/i18next/i18next-resources-to-backend) [![npm version](https://img.shields.io/npm/v/i18next-resources-to-backend.svg?style=flat-square)](https://www.npmjs.com/package/i18next-resources-to-backend) This package helps to transform resources to an i18next backend. To be used in Node.js, in the browser and for Deno. diff --git a/package.json b/package.json index aa3d195..0e359e1 100644 --- a/package.json +++ b/package.json @@ -58,35 +58,35 @@ }, "license": "MIT", "dependencies": { - "@babel/runtime": "^7.21.5" + "@babel/runtime": "^7.23.2" }, "devDependencies": { - "@babel/core": "^7.21.8", - "@babel/plugin-transform-runtime": "^7.21.4", - "@babel/preset-env": "^7.21.5", - "@types/mocha": "^10.0.1", - "@typescript-eslint/eslint-plugin": "^5.59.6", - "@typescript-eslint/parser": "^5.59.6", + "@babel/core": "^7.23.2", + "@babel/plugin-transform-runtime": "^7.23.2", + "@babel/preset-env": "^7.23.2", + "@types/mocha": "^10.0.2", + "@typescript-eslint/eslint-plugin": "^6.7.5", + "@typescript-eslint/parser": "^6.7.5", "babel-plugin-add-module-exports": "^1.0.4", - "eslint": "^8.40.0", - "eslint-config-standard": "^17.0.0", - "eslint-plugin-import": "^2.27.5", - "eslint-plugin-n": "^15.6.1", + "eslint": "^8.51.0", + "eslint-config-standard": "^17.1.0", + "eslint-plugin-import": "^2.28.1", + "eslint-plugin-n": "^16.2.0", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-require-path-exists": "^1.1.9", "eslint-plugin-standard": "^5.0.0", - "i18next": "^22.5.0", - "i18next-chained-backend": "^4.2.0", + "i18next": "^23.5.1", + "i18next-chained-backend": "^4.5.0", "mocha": "^10.2.0", - "rollup": "^2.79.1", - "@rollup/plugin-babel": "^6.0.0", - "@rollup/plugin-commonjs": "^23.0.0", - "@rollup/plugin-node-resolve": "^14.1.0", + "rollup": "^4.1.4", + "@rollup/plugin-babel": "^6.0.4", + "@rollup/plugin-commonjs": "^25.0.7", + "@rollup/plugin-node-resolve": "^15.2.3", "rollup-plugin-terser": "^7.0.2", "should": "^13.2.3", - "sinon": "^15.1.0", - "tsd": "^0.28.1", - "typescript": "^5.0.4" + "sinon": "^16.1.0", + "tsd": "^0.29.0", + "typescript": "^5.2.2" }, "tsd": { "directory": "test/types" diff --git a/rollup.config.js b/rollup.config.js index 975fb51..6490e77 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -2,7 +2,8 @@ import { babel } from '@rollup/plugin-babel' import { nodeResolve } from '@rollup/plugin-node-resolve' import { terser } from 'rollup-plugin-terser' import commonjs from '@rollup/plugin-commonjs' -import pkg from './package.json' +import { readFileSync } from 'fs' +const pkg = JSON.parse(readFileSync(new URL('package.json', import.meta.url))) const getBabelOptions = ({ useESModules, plugins = [] }) => ({ exclude: /node_modules/, diff --git a/tsconfig.json b/tsconfig.json index 0b29b93..36216e7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "strict": true }, "include": [ - "/test/types/*.test-d.ts", - "/*.d.ts" + "test/types/*.test-d.ts", + "*.d.ts" ] }