Skip to content

Commit

Permalink
change: Upgraded dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nonara committed Aug 10, 2022
1 parent 421c9c5 commit a878131
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 42 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ ij_javascript_ternary_operation_wrap = off
ij_javascript_union_types_wrap = on_every_item
ij_javascript_use_chained_calls_group_indents = false
ij_javascript_use_double_quotes = true
ij_javascript_use_explicit_js_extension = global
ij_javascript_use_explicit_js_extension = auto
ij_javascript_use_path_mapping = always
ij_javascript_use_public_modifier = false
ij_javascript_use_semicolon_after_statement = true
Expand Down Expand Up @@ -364,7 +364,7 @@ ij_typescript_ternary_operation_wrap = off
ij_typescript_union_types_wrap = on_every_item
ij_typescript_use_chained_calls_group_indents = false
ij_typescript_use_double_quotes = false
ij_typescript_use_explicit_js_extension = global
ij_typescript_use_explicit_js_extension = auto
ij_typescript_use_path_mapping = always
ij_typescript_use_public_modifier = false
ij_typescript_use_semicolon_after_statement = true
Expand Down
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

7 changes: 4 additions & 3 deletions jest.config.ts
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ const config: Config.InitialOptions = {
coveragePathIgnorePatterns: [
'src/installer/lib/system/errors.ts$'
],
globalSetup: './test/src/setup.ts',
globalTeardown: './test/src/teardown.ts',
globalSetup: './test/src/setup.js',
globalTeardown: './test/src/teardown.js',
testTimeout: 10000,
transformIgnorePatterns: [
'/node_modules/(?!(ts-transformer-keys|ts-transformer-enumerate|ts-nameof)/)'
]
],
maxWorkers: 1 // Have to set this for now, as mockFs seems to mess up other threads
}

export default config;
63 changes: 49 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
},
"homepage": "https://github.com/nonara/ts-patch#readme",
"dependencies": {
"chalk": "^4.1.0",
"glob": "^7.1.7",
"chalk": "^4.1.2",
"glob": "^8.0.3",
"global-prefix": "^3.0.0",
"minimist": "^1.2.5",
"resolve": "^1.20.0",
"minimist": "^1.2.6",
"resolve": "^1.22.1",
"shelljs": "^0.8.5",
"strip-ansi": "^6.0.0"
"strip-ansi": "^6.0.1"
},
"bin": {
"ts-patch": "./dist/bin/cli.js"
Expand All @@ -60,7 +60,7 @@
},
"devDependencies": {
"@phenomnomnominal/tsquery": "^4.1.0",
"@types/jest": "^27.0.2",
"@types/jest": "^28.1.6",
"@types/minimist": "^1.2.2",
"@types/mock-fs": "^4.13.1",
"@types/node": "^16.11.5",
Expand All @@ -69,26 +69,61 @@
"@types/ts-expose-internals": "npm:ts-expose-internals@4.4.4",
"graphql": "^15.4.0",
"graphql-tag": "^2.10.3",
"jest": "^27.3.1",
"jest": "^28.1.3",
"jest-mock-process": "^1.4.1",
"mock-fs": "^5.1.1",
"rfdc": "^1.3.0",
"rimraf": "^3.0.2",
"standard-version": "^9.3.2",
"ts-jest": "^27.0.7",
"ts-nameof": "^5.0.0",
"ts-jest": "^28.0.7",
"ts-node": "^10.4.0",
"ts-patch": "^1.4.5",
"ts-transform-css-modules": "^0.3.3",
"ts-transform-graphql-tag": "^0.2.1",
"ts-transform-img": "^0.4.2",
"ts-transform-react-intl": "^0.4.1",
"ts-transformer-enumerate": "^0.5.1",
"ts-transformer-keys": "^0.4.3",
"tsconfig-paths": "^3.11.0",
"typescript": "^4.4.4"
"typescript": "^4.7.4"
},
"directories": {
"resources": "./dist/resources"
},
"standard-version": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"hidden": true
},
{
"type": "docs",
"hidden": true
},
{
"type": "style",
"hidden": true
},
{
"type": "refactor",
"hidden": true
},
{
"type": "perf",
"hidden": true
},
{
"type": "test",
"hidden": true
},
{
"type": "change",
"section": "Changes"
}
]
}
}
2 changes: 1 addition & 1 deletion scripts/postbuild.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ const cliSrc = fs.readFileSync(cliPath, 'utf8');
if (!/^#!\/usr\/bin\/env/.test(cliSrc)) fs.writeFileSync(cliPath, `#!/usr/bin/env node\n\n${cliSrc}`, 'utf8');

/* Ensure EOL = LF in resources */
const resFiles = glob.sync(path.join(DIST_RESOURCE_DIR, '*'));
const resFiles = glob.sync(path.join(DIST_RESOURCE_DIR, '*').replace(/\\/g, '/'));
shell.sed('-i', /\r+$/, '', resFiles);
8 changes: 4 additions & 4 deletions test/src/setup.ts → test/src/setup.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs-extra';
import path from 'path';
import { tmpDir, tsModules } from './config';
import * as tsp from 'ts-patch'
const fs = require('fs-extra');
const path = require('path');
const { tmpDir, tsModules } = require('./config');
const tsp = require('ts-patch');


/* ****************************************************************************************************************** *
Expand Down
4 changes: 2 additions & 2 deletions test/src/teardown.ts → test/src/teardown.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs';
import { tmpDir } from './config';
const fs = require('fs');
const { tmpDir } = require('./config');


/* ****************************************************************************************************************** *
Expand Down
5 changes: 0 additions & 5 deletions test/tests/patch/typescript.test.ts
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,8 @@ describe(`Typescript`, () => {
const res = ts.transpileModule(basicCode, {
compilerOptions: {
plugins: [
{ transform: 'ts-transformer-keys/transformer' },
{ transform: 'ts-transformer-enumerate/transformer' },
{ transform: 'ts-transform-graphql-tag/dist/transformer' },
{ transform: 'ts-transform-img/dist/transform', type: 'config' },
{ transform: 'ts-transform-css-modules/dist/transform', type: 'config' },
{ transform: 'ts-transform-react-intl/dist/transform', type: 'config', import: 'transform' },
{ transform: 'ts-nameof', type: 'raw' },
] as any,
},
});
Expand Down

0 comments on commit a878131

Please sign in to comment.