Skip to content

Commit 136ad6e

Browse files
committed
refactor!: remove module build
1 parent e9776b5 commit 136ad6e

File tree

19 files changed

+23
-80
lines changed

19 files changed

+23
-80
lines changed

packages/@textlint/config-inliner/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@
2525
"files": [
2626
"bin/",
2727
"lib/",
28-
"module/",
2928
"src/"
3029
],
3130
"scripts": {
3231
"test": "mocha \"test/**/*.ts\"",
3332
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
34-
"build": "tsc -p . && tsc -p ./tsconfig.module.json",
33+
"build": "tsc -p .",
3534
"watch": "tsc -p . --watch",
36-
"clean": "rimraf lib/ module/",
35+
"clean": "rimraf lib/",
3736
"prepublishOnly": "npm run clean && npm run build"
3837
},
3938
"prettier": {

packages/@textlint/config-inliner/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"esModuleInterop": true,
77
"newLine": "LF",
88
"outDir": "./lib/",
9-
"target": "es5",
9+
"target": "es2024",
1010
"sourceMap": true,
1111
"declaration": true,
1212
"jsx": "preserve",

packages/@textlint/config-inliner/tsconfig.module.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/@textlint/config-partial-parser/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@
2525
},
2626
"files": [
2727
"bin/",
28-
"lib/",
29-
"module"
28+
"lib/"
3029
],
3130
"scripts": {
32-
"build": "tsc -p . && tsc -p ./tsconfig.module.json",
33-
"clean": "rimraf lib/ module/",
31+
"build": "tsc -p .",
32+
"clean": "rimraf lib/",
3433
"prepublishOnly": "npm run clean && npm run build",
3534
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
3635
"test": "mocha \"test/**/*.ts\"",

packages/@textlint/config-partial-parser/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"esModuleInterop": true,
77
"newLine": "LF",
88
"outDir": "./lib/",
9-
"target": "es5",
9+
"target": "es2024",
1010
"sourceMap": true,
1111
"declaration": true,
1212
"jsx": "preserve",

packages/@textlint/config-partial-parser/tsconfig.module.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/@textlint/runtime-helper/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@
2121
},
2222
"files": [
2323
"bin/",
24-
"lib/",
25-
"module"
24+
"lib/"
2625
],
2726
"scripts": {
28-
"build": "tsc -p . && tsc --project ./tsconfig.module.json",
29-
"clean": "rimraf lib/ module/",
27+
"build": "tsc -p .",
28+
"clean": "rimraf lib/",
3029
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
3130
"prepublish": "npm run --if-present build",
3231
"watch": "tsc -p . --watch"

packages/@textlint/runtime-helper/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"esModuleInterop": true,
77
"newLine": "LF",
88
"outDir": "./lib/",
9-
"target": "es5",
9+
"target": "es2024",
1010
"sourceMap": true,
1111
"declaration": true,
1212
"jsx": "preserve",
@@ -16,6 +16,7 @@
1616
],
1717
/* Strict Type-Checking Options */
1818
"strict": true,
19+
"skipLibCheck": true,
1920
/* Additional Checks */
2021
/* Report errors on unused locals. */
2122
"noUnusedLocals": true,

packages/@textlint/runtime-helper/tsconfig.module.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/@textlint/script-compiler/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"author": "azu",
2121
"sideEffects": false,
2222
"main": "lib/index.js",
23-
"module": "module/index.js",
2423
"types": "lib/index.d.ts",
2524
"directories": {
2625
"lib": "lib",
@@ -32,12 +31,11 @@
3231
"files": [
3332
"bin/",
3433
"lib/",
35-
"module/",
3634
"patch/"
3735
],
3836
"scripts": {
39-
"build": "tsc -p . && tsc --project ./tsconfig.module.json",
40-
"clean": "rimraf lib/ module/",
37+
"build": "tsc -p .",
38+
"clean": "rimraf lib/",
4139
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
4240
"prepublish": "npm run --if-present build",
4341
"test": "npm run build:example",

0 commit comments

Comments
 (0)