Skip to content

Commit

Permalink
feat: first blood, should just work
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Oct 10, 2021
1 parent 8f7fc16 commit 416be62
Show file tree
Hide file tree
Showing 15 changed files with 1,354 additions and 242 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@1stg",
"rules": {
"@typescript-eslint/consistent-type-imports": 2,
"unicorn/require-post-message-target-origin": 0
}
}
1 change: 0 additions & 1 deletion .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@1stg/prettier-config')
File renamed without changes.
15 changes: 2 additions & 13 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
import { Config } from '@jest/types'
import type { Config } from '@jest/types'

const config: Config.InitialOptions = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: true,
extensionsToTreatAsEsm: ['.ts'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
'^pkg$': '<rootDir>/src',
},
globals: {
'ts-jest': {
useESM: true,
tsconfig: {
importHelpers: false,
},
},
'^typemod/(.*)': '<rootDir>/src/$1',
},
}

Expand Down
40 changes: 28 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@
{
"name": "pkg",
"name": "typemod",
"version": "0.0.0",
"type": "module",
"description": "A simple library boilerplate.",
"repository": "git+https://github.com/rx-ts/lib-boilerplate.git",
"type": "commonjs",
"description": "Codemod scripts to transform ts codes into latest features.",
"repository": "git+https://github.com/rx-ts/typemod.git",
"author": "JounQin <admin@1stg.me>",
"license": "MIT",
"engines": {
"node": ">=v12.0.0"
"node": ">=12"
},
"main": "./lib.index.js",
"module": "./lib/index.es2015.mjs",
"exports": {
"import": "./lib/index.js",
"require": "./lib/index.cjs"
".": {
"import": "./lib/index.es2015.mjs",
"require": "./lib.index.js"
},
"./*": "./lib/*.js"
},
"types": "lib",
"files": [
"lib",
"!*.tsbuildinfo"
],
"keywords": [
"codemod-ts",
"js-codemod",
"jscodeshift",
"refactor",
"ts-codemod",
"tsmod",
"typemod"
],
"scripts": {
"build": "run-p build:*",
"build:r": "r -f cjs",
"build:r": "r -f es2015",
"build:ts": "tsc -p src",
"lint": "run-p lint:*",
"lint:es": "eslint . --cache -f friendly --max-warnings 10",
Expand All @@ -32,23 +46,25 @@
"typecov": "type-coverage"
},
"dependencies": {
"tslib": "^2.3.1"
"eslint-import-resolver-typescript": "^2.5.0",
"jscodeshift": "^0.13.0"
},
"devDependencies": {
"@1stg/lib-config": "^4.1.0",
"@1stg/lib-config": "^4.1.1",
"@changesets/changelog-github": "^0.4.1",
"@changesets/cli": "^2.17.0",
"@types/jest": "^27.0.2",
"@types/jscodeshift": "^0.11.2",
"@types/node": "^16.10.3",
"ts-jest": "^27.0.5",
"type-coverage": "^2.18.2",
"typescript": "^4.4.3"
"typescript": "^4.5.0-beta"
},
"resolutions": {
"prettier": "^2.4.1"
},
"typeCoverage": {
"atLeast": 100,
"atLeast": 99.64,
"cache": true,
"detail": true,
"ignoreAsAssertion": true,
Expand Down
Loading

0 comments on commit 416be62

Please sign in to comment.