Skip to content

Commit

Permalink
tsx to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bicstone committed Nov 3, 2022
1 parent e213add commit b924b4e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"files": ["*.ts"],
"extends": [
"standard-with-typescript",
"plugin:import/recommended",
Expand Down
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const config: InitialOptionsTsJest = {
collectCoverage: true,

// An array of glob patterns indicating a set of files for which coverage information should be collected
collectCoverageFrom: ["./src/**/*.{ts,tsx}"],
collectCoverageFrom: ["./src/**/*.ts"],

// The directory where Jest should output its coverage files
// coverageDirectory: "coverage",
Expand Down Expand Up @@ -175,7 +175,7 @@ const config: InitialOptionsTsJest = {

// A map from regular expressions to paths to transformers
transform: {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.ts$": "ts-jest",
},

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"e2e": "yarn build:e2e && cd e2e && yarn e2e:run",
"e2e:open": "yarn build:e2e && cd e2e && yarn e2e:open",
"build": "yarn build:plugin && yarn build:emit",
"build:e2e": "babel src/gatsby-ssr.tsx src/index.ts --out-dir e2e/plugins/gatsby-plugin-fix-fouc --extensions .ts,.tsx",
"build:plugin": "babel src --out-dir . --extensions .ts,.tsx",
"build:e2e": "babel src/gatsby-ssr.ts src/index.ts --out-dir e2e/plugins/gatsby-plugin-fix-fouc --extensions .ts",
"build:plugin": "babel src --out-dir . --extensions .ts",
"build:emit": "tsc -p tsconfig.emitDeclarations.json",
"lint": "eslint --cache --ignore-path .eslintignore --max-warnings=0 .",
"lint:fix": "yarn lint --fix",
Expand Down
2 changes: 1 addition & 1 deletion src/gatsby-ssr.tsx → src/gatsby-ssr.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";

import { camelCase } from "camel-case";
import { defaultOptions, GatsbyPluginFixFoucOptions } from "./";
import { defaultOptions, GatsbyPluginFixFoucOptions } from ".";

import type { RenderBodyArgs } from "gatsby";

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,6 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["*.ts", "*.tsx", "src"],
"include": ["*.ts", "src"],
"exclude": ["node_modules"]
}

0 comments on commit b924b4e

Please sign in to comment.