@modern-js/module-tools 1.5.0 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,68 @@
1
1
  # @modern-js/module-tools
2
2
 
3
+ ## 1.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - b8cfc42cd: feat: prebundle tsconfig-paths and nanoid
8
+ - Updated dependencies [b8cfc42cd]
9
+ - Updated dependencies [804a5bb8a]
10
+ - Updated dependencies [3680834f2]
11
+ - Updated dependencies [a37960018]
12
+ - @modern-js/utils@1.7.4
13
+ - @modern-js/plugin-analyze@1.4.4
14
+ - @modern-js/core@1.10.3
15
+ - @modern-js/css-config@1.2.6
16
+ - @modern-js/plugin-changeset@1.2.7
17
+ - @modern-js/plugin-fast-refresh@1.2.6
18
+
19
+ ## 1.5.2
20
+
21
+ ### Patch Changes
22
+
23
+ - d32f35134: chore: add modern/jest/eslint/ts config files to .npmignore
24
+ - Updated dependencies [d5913bd96]
25
+ - Updated dependencies [d32f35134]
26
+ - Updated dependencies [43d9bb5fa]
27
+ - Updated dependencies [d9d398e16]
28
+ - Updated dependencies [6ae4a34ae]
29
+ - Updated dependencies [b80229c79]
30
+ - Updated dependencies [948cc4436]
31
+ - @modern-js/plugin@1.3.4
32
+ - @modern-js/babel-preset-module@1.3.5
33
+ - @modern-js/core@1.10.2
34
+ - @modern-js/css-config@1.2.6
35
+ - @modern-js/i18n-cli-language-detector@1.2.3
36
+ - @modern-js/plugin-analyze@1.4.3
37
+ - @modern-js/plugin-changeset@1.2.7
38
+ - @modern-js/plugin-fast-refresh@1.2.6
39
+ - @modern-js/plugin-i18n@1.2.6
40
+ - @modern-js/new-action@1.3.9
41
+ - @modern-js/babel-compiler@1.2.5
42
+ - @modern-js/style-compiler@1.2.6
43
+ - @modern-js/utils@1.7.3
44
+
45
+ ## 1.5.1
46
+
47
+ ### Patch Changes
48
+
49
+ - 69a728375: fix: remove exports.jsnext:source after publish
50
+ - Updated dependencies [cd7346b0d]
51
+ - Updated dependencies [0e0537005]
52
+ - Updated dependencies [6b0bb5e3b]
53
+ - Updated dependencies [69a728375]
54
+ - @modern-js/utils@1.7.2
55
+ - @modern-js/babel-preset-module@1.3.4
56
+ - @modern-js/babel-compiler@1.2.4
57
+ - @modern-js/new-action@1.3.8
58
+ - @modern-js/core@1.10.1
59
+ - @modern-js/css-config@1.2.5
60
+ - @modern-js/plugin-analyze@1.4.2
61
+ - @modern-js/plugin-changeset@1.2.6
62
+ - @modern-js/plugin-fast-refresh@1.2.5
63
+ - @modern-js/plugin-i18n@1.2.5
64
+ - @modern-js/style-compiler@1.2.5
65
+
3
66
  ## 1.5.0
4
67
 
5
68
  ### Minor Changes
@@ -1,3 +1,5 @@
1
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+
1
3
  import { chalk } from '@modern-js/utils';
2
4
  export const colors = {
3
5
  title: chalk.rgb(218, 152, 92)
@@ -27,9 +29,12 @@ ${_contentColor(messageFragments.join(''))}${_noBottomBorder ? '' : `\n${_bottom
27
29
  // 处理Log内容如何展示
28
30
  export class LoggerText {
29
31
  constructor(option) {
30
- this.messages = void 0;
31
- this.hasErrorMessage = void 0;
32
- this.option = void 0;
32
+ _defineProperty(this, "messages", void 0);
33
+
34
+ _defineProperty(this, "hasErrorMessage", void 0);
35
+
36
+ _defineProperty(this, "option", void 0);
37
+
33
38
  this.messages = [];
34
39
  this.option = option;
35
40
  this.hasErrorMessage = false;
@@ -1,6 +1,8 @@
1
1
  let _ = t => t,
2
2
  _t;
3
3
 
4
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+
4
6
  /**
5
7
  * 1. 注册构建任务
6
8
  * 2. 监听各个构建任务进程中的信息:process.stdout.on('data' | 'error')
@@ -13,8 +15,11 @@ const readline = Import.lazy('../../../utils/readline', require);
13
15
  export class LoggerManager extends EventEmitter {
14
16
  constructor() {
15
17
  super();
16
- this._compilering = void 0;
17
- this._listeners = void 0;
18
+
19
+ _defineProperty(this, "_compilering", void 0);
20
+
21
+ _defineProperty(this, "_listeners", void 0);
22
+
18
23
  this._compilering = false;
19
24
  this._listeners = [];
20
25
  }
@@ -1,3 +1,5 @@
1
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+
1
3
  import * as path from 'path';
2
4
  import * as os from 'os';
3
5
  import { Import, chalk } from '@modern-js/utils';
@@ -128,7 +130,8 @@ export const getDtsMapper = (api, config, logger) => {
128
130
 
129
131
  export class LogStack {
130
132
  constructor() {
131
- this._codeLogStack = void 0;
133
+ _defineProperty(this, "_codeLogStack", void 0);
134
+
132
135
  this._codeLogStack = [];
133
136
  }
134
137
 
@@ -187,4 +190,5 @@ export class TimeCounter {
187
190
  }
188
191
 
189
192
  }
190
- TimeCounter._now = void 0;
193
+
194
+ _defineProperty(TimeCounter, "_now", void 0);
@@ -118,13 +118,13 @@ const taskMain = async ({
118
118
 
119
119
 
120
120
  const srcDir = path.resolve(appDirectory, SRC_STYLE_DIRS);
121
- const outputDirtoSrc = path.join(appDirectory, outputPath, jsPath, assetsPath);
121
+ const outputDirToSrc = path.join(appDirectory, outputPath, jsPath, assetsPath);
122
122
 
123
123
  if (importStyle === 'compiled-code') {
124
124
  const srcStyleResult = await compiler.styleCompiler({
125
125
  projectDir: appDirectory,
126
126
  stylesDir: srcDir,
127
- outDir: outputDirtoSrc,
127
+ outDir: outputDirToSrc,
128
128
  enableVirtualDist: true,
129
129
  compilerOption: {
130
130
  less: lessOption,
@@ -136,7 +136,7 @@ const taskMain = async ({
136
136
  } else {
137
137
  copyOriginStyleFiles({
138
138
  targetDir: srcDir,
139
- outputDir: outputDirtoSrc
139
+ outputDir: outputDirToSrc
140
140
  });
141
141
  }
142
142
  };
@@ -31,7 +31,7 @@ export const copyTask = async option => {
31
31
  try {
32
32
  // 类型暂时这样处理,待之后优化copy的逻辑
33
33
  for (const copyOption of copy) {
34
- // 在原来的基础上,引入了类似于 copy-webpck-plugin 的 context 属性,可以设置项目根路径
34
+ // 在原来的基础上,引入了类似于 copy-webpack-plugin 的 context 属性,可以设置项目根路径
35
35
  const {
36
36
  context = appDirectory,
37
37
  from,
@@ -1,3 +1,5 @@
1
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+
1
3
  import EventEmitter from 'events';
2
4
  import { chalk } from '@modern-js/utils';
3
5
  export const clearFlag = '\x1Bc';
@@ -25,8 +27,10 @@ ${_contentColor(messageFragments.join(''))}${_noBottomBorder ? '' : `\n${_bottom
25
27
  };
26
28
  export class LoggerText {
27
29
  constructor(option) {
28
- this.messages = void 0;
29
- this.option = void 0;
30
+ _defineProperty(this, "messages", void 0);
31
+
32
+ _defineProperty(this, "option", void 0);
33
+
30
34
  this.messages = [];
31
35
  this.option = option;
32
36
  }
@@ -3,7 +3,7 @@ import * as parser from '@babel/parser';
3
3
  import traverse from '@babel/traverse';
4
4
  import generator from '@babel/generator';
5
5
  import * as t from '@babel/types';
6
- import { createMatchPath } from 'tsconfig-paths';
6
+ import { createMatchPath } from '@modern-js/utils/tsconfig-paths';
7
7
  import { fs } from '@modern-js/utils';
8
8
  import { defaultTransformedFunctions } from "./constants";
9
9
  import { matchesPattern, isImportCall } from "./utils";
@@ -75,7 +75,7 @@ const transformExport = option => nodePath => {
75
75
  mapPathString(nodePath.get('source'), option);
76
76
  };
77
77
 
78
- const transfromSingleFileAlias = ({
78
+ const transformSingleFileAlias = ({
79
79
  filename,
80
80
  baseUrl,
81
81
  paths
@@ -118,7 +118,7 @@ export const transformDtsAlias = option => {
118
118
  for (const filename of filenames) {
119
119
  transformResult.push({
120
120
  path: filename,
121
- content: transfromSingleFileAlias({
121
+ content: transformSingleFileAlias({
122
122
  filename,
123
123
  baseUrl,
124
124
  paths
@@ -7,6 +7,8 @@ exports.logTemplate = exports.colors = exports.clearFlag = exports.LoggerText =
7
7
 
8
8
  var _utils = require("@modern-js/utils");
9
9
 
10
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
+
10
12
  const colors = {
11
13
  title: _utils.chalk.rgb(218, 152, 92)
12
14
  };
@@ -41,9 +43,12 @@ exports.logTemplate = logTemplate;
41
43
  // 处理Log内容如何展示
42
44
  class LoggerText {
43
45
  constructor(option) {
44
- this.messages = void 0;
45
- this.hasErrorMessage = void 0;
46
- this.option = void 0;
46
+ _defineProperty(this, "messages", void 0);
47
+
48
+ _defineProperty(this, "hasErrorMessage", void 0);
49
+
50
+ _defineProperty(this, "option", void 0);
51
+
47
52
  this.messages = [];
48
53
  this.option = option;
49
54
  this.hasErrorMessage = false;
@@ -14,6 +14,8 @@ let _ = t => t,
14
14
 
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
 
17
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
+
17
19
  const logText = _utils.Import.lazy('./logText', require);
18
20
 
19
21
  const readline = _utils.Import.lazy('../../../utils/readline', require);
@@ -21,8 +23,11 @@ const readline = _utils.Import.lazy('../../../utils/readline', require);
21
23
  class LoggerManager extends _events.default {
22
24
  constructor() {
23
25
  super();
24
- this._compilering = void 0;
25
- this._listeners = void 0;
26
+
27
+ _defineProperty(this, "_compilering", void 0);
28
+
29
+ _defineProperty(this, "_listeners", void 0);
30
+
26
31
  this._compilering = false;
27
32
  this._listeners = [];
28
33
  }
@@ -15,6 +15,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
 
18
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+
18
20
  const constants = _utils.Import.lazy('./constants', require); // 硬解字符串返回相应格式的对象
19
21
 
20
22
 
@@ -152,7 +154,8 @@ exports.getDtsMapper = getDtsMapper;
152
154
 
153
155
  class LogStack {
154
156
  constructor() {
155
- this._codeLogStack = void 0;
157
+ _defineProperty(this, "_codeLogStack", void 0);
158
+
156
159
  this._codeLogStack = [];
157
160
  }
158
161
 
@@ -219,4 +222,5 @@ class TimeCounter {
219
222
  }
220
223
 
221
224
  exports.TimeCounter = TimeCounter;
222
- TimeCounter._now = void 0;
225
+
226
+ _defineProperty(TimeCounter, "_now", void 0);
@@ -133,13 +133,13 @@ const taskMain = async ({
133
133
 
134
134
 
135
135
  const srcDir = path.resolve(appDirectory, SRC_STYLE_DIRS);
136
- const outputDirtoSrc = path.join(appDirectory, outputPath, jsPath, assetsPath);
136
+ const outputDirToSrc = path.join(appDirectory, outputPath, jsPath, assetsPath);
137
137
 
138
138
  if (importStyle === 'compiled-code') {
139
139
  const srcStyleResult = await compiler.styleCompiler({
140
140
  projectDir: appDirectory,
141
141
  stylesDir: srcDir,
142
- outDir: outputDirtoSrc,
142
+ outDir: outputDirToSrc,
143
143
  enableVirtualDist: true,
144
144
  compilerOption: {
145
145
  less: lessOption,
@@ -151,7 +151,7 @@ const taskMain = async ({
151
151
  } else {
152
152
  copyOriginStyleFiles({
153
153
  targetDir: srcDir,
154
- outputDir: outputDirtoSrc
154
+ outputDir: outputDirToSrc
155
155
  });
156
156
  }
157
157
  };
@@ -45,7 +45,7 @@ const copyTask = async option => {
45
45
  try {
46
46
  // 类型暂时这样处理,待之后优化copy的逻辑
47
47
  for (const copyOption of copy) {
48
- // 在原来的基础上,引入了类似于 copy-webpck-plugin 的 context 属性,可以设置项目根路径
48
+ // 在原来的基础上,引入了类似于 copy-webpack-plugin 的 context 属性,可以设置项目根路径
49
49
  const {
50
50
  context = appDirectory,
51
51
  from,
@@ -11,6 +11,8 @@ var _utils = require("@modern-js/utils");
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
14
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+
14
16
  const clearFlag = '\x1Bc';
15
17
  exports.clearFlag = clearFlag;
16
18
 
@@ -41,8 +43,10 @@ exports.logTemplate = logTemplate;
41
43
 
42
44
  class LoggerText {
43
45
  constructor(option) {
44
- this.messages = void 0;
45
- this.option = void 0;
46
+ _defineProperty(this, "messages", void 0);
47
+
48
+ _defineProperty(this, "option", void 0);
49
+
46
50
  this.messages = [];
47
51
  this.option = option;
48
52
  }
@@ -15,7 +15,7 @@ var _generator = _interopRequireDefault(require("@babel/generator"));
15
15
 
16
16
  var t = _interopRequireWildcard(require("@babel/types"));
17
17
 
18
- var _tsconfigPaths = require("tsconfig-paths");
18
+ var _tsconfigPaths = require("@modern-js/utils/tsconfig-paths");
19
19
 
20
20
  var _utils = require("@modern-js/utils");
21
21
 
@@ -97,7 +97,7 @@ const transformExport = option => nodePath => {
97
97
  mapPathString(nodePath.get('source'), option);
98
98
  };
99
99
 
100
- const transfromSingleFileAlias = ({
100
+ const transformSingleFileAlias = ({
101
101
  filename,
102
102
  baseUrl,
103
103
  paths
@@ -141,7 +141,7 @@ const transformDtsAlias = option => {
141
141
  for (const filename of filenames) {
142
142
  transformResult.push({
143
143
  path: filename,
144
- content: transfromSingleFileAlias({
144
+ content: transformSingleFileAlias({
145
145
  filename,
146
146
  baseUrl,
147
147
  paths
@@ -3,7 +3,7 @@ export interface IDevConfig {
3
3
  appDirectory: string;
4
4
  isTsProject: boolean;
5
5
  }
6
- export declare type DevTaskType = 'storybook' | 'docsite' | 'unknow';
6
+ export declare type DevTaskType = 'storybook' | 'docsite' | 'unknown';
7
7
  export declare const showMenu: (api: PluginAPI, config: IDevConfig) => Promise<void>;
8
8
  export declare const devStorybook: (api: PluginAPI, config: IDevConfig) => Promise<void>;
9
9
  export declare const runSubCmd: (api: PluginAPI, subCmd: string, config: IDevConfig) => Promise<void>;
@@ -3,12 +3,12 @@ export interface TransformOption {
3
3
  baseUrl: string;
4
4
  paths: Record<string, string[] | string>;
5
5
  }
6
- interface TransformDtsAlaisOption {
6
+ interface TransformDtsAliasOption {
7
7
  filenames?: string[];
8
8
  baseUrl: string;
9
9
  paths: Record<string, string[] | string>;
10
10
  }
11
- export declare const transformDtsAlias: (option: TransformDtsAlaisOption) => {
11
+ export declare const transformDtsAlias: (option: TransformDtsAliasOption) => {
12
12
  path: string;
13
13
  content: string;
14
14
  }[];
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.5.0",
14
+ "version": "1.5.3",
15
15
  "bin": {
16
16
  "modern": "./bin/modern.js"
17
17
  },
@@ -54,34 +54,33 @@
54
54
  "@babel/runtime": "^7",
55
55
  "@babel/traverse": "^7.15.0",
56
56
  "@babel/types": "^7.17.0",
57
- "@modern-js/babel-compiler": "^1.2.3",
58
- "@modern-js/babel-preset-module": "^1.3.3",
59
- "@modern-js/core": "^1.9.0",
60
- "@modern-js/css-config": "^1.2.4",
61
- "@modern-js/i18n-cli-language-detector": "^1.2.2",
62
- "@modern-js/new-action": "^1.3.7",
63
- "@modern-js/plugin": "^1.3.3",
64
- "@modern-js/plugin-analyze": "^1.4.1",
65
- "@modern-js/plugin-changeset": "^1.2.5",
66
- "@modern-js/plugin-fast-refresh": "^1.2.4",
67
- "@modern-js/plugin-i18n": "^1.2.4",
68
- "@modern-js/style-compiler": "^1.2.4",
69
- "@modern-js/utils": "^1.6.0",
57
+ "@modern-js/babel-compiler": "^1.2.5",
58
+ "@modern-js/babel-preset-module": "^1.3.5",
59
+ "@modern-js/core": "^1.10.3",
60
+ "@modern-js/css-config": "^1.2.6",
61
+ "@modern-js/i18n-cli-language-detector": "^1.2.3",
62
+ "@modern-js/new-action": "^1.3.9",
63
+ "@modern-js/plugin": "^1.3.4",
64
+ "@modern-js/plugin-analyze": "^1.4.4",
65
+ "@modern-js/plugin-changeset": "^1.2.7",
66
+ "@modern-js/plugin-fast-refresh": "^1.2.6",
67
+ "@modern-js/plugin-i18n": "^1.2.6",
68
+ "@modern-js/style-compiler": "^1.2.6",
69
+ "@modern-js/utils": "^1.7.4",
70
70
  "normalize-path": "^3.0.0",
71
71
  "p-map": "^4",
72
- "process.argv": "^0.6.0",
73
- "tsconfig-paths": "^3.10.1"
72
+ "process.argv": "^0.6.0"
74
73
  },
75
74
  "devDependencies": {
76
75
  "@babel/preset-typescript": "^7.15.0",
77
- "@modern-js/babel-chain": "1.2.2",
76
+ "@modern-js/babel-chain": "1.2.3",
78
77
  "@scripts/build": "0.0.0",
79
78
  "@scripts/jest-config": "0.0.0",
80
79
  "@types/babel__core": "^7.1.15",
81
80
  "@types/babel__generator": "^7.6.3",
82
81
  "@types/babel__traverse": "^7.14.2",
83
82
  "@types/glob": "^7.1.4",
84
- "@types/jest": "^26",
83
+ "@types/jest": "^27",
85
84
  "@types/node": "^14",
86
85
  "@types/normalize-path": "^3.0.0",
87
86
  "@types/react": "^17",
@@ -99,10 +98,33 @@
99
98
  "registry": "https://registry.npmjs.org/",
100
99
  "access": "public"
101
100
  },
101
+ "wireit": {
102
+ "build": {
103
+ "command": "modern build",
104
+ "files": [
105
+ "src/**/*",
106
+ "tsconfig.json",
107
+ "package.json"
108
+ ],
109
+ "output": [
110
+ "dist/**/*"
111
+ ]
112
+ },
113
+ "test": {
114
+ "command": "jest --passWithNoTests",
115
+ "files": [
116
+ "src/**/*",
117
+ "tsconfig.json",
118
+ "package.json",
119
+ "tests/**/*"
120
+ ],
121
+ "output": []
122
+ }
123
+ },
102
124
  "scripts": {
103
125
  "new": "modern new",
104
- "build": "modern build",
105
- "test": "jest --passWithNoTests"
126
+ "build": "wireit",
127
+ "test": "wireit"
106
128
  },
107
129
  "readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
108
130
  }
package/.eslintrc.js DELETED
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- extends: ['@modern-js'],
3
- parserOptions: {
4
- project: [
5
- require.resolve('./tsconfig.json'),
6
- require.resolve('./tests/tsconfig.json'),
7
- ],
8
- },
9
- ignorePatterns: ['types.d.ts'],
10
- };
package/jest.config.js DELETED
@@ -1,7 +0,0 @@
1
- const sharedConfig = require('@scripts/jest-config');
2
-
3
- /** @type {import('@jest/types').Config.InitialOptions} */
4
- module.exports = {
5
- ...sharedConfig,
6
- rootDir: __dirname,
7
- };
package/modern.config.js DELETED
@@ -1,6 +0,0 @@
1
- /** @type {import('@modern-js/module-tools').UserConfig} */
2
- module.exports = {
3
- output: {
4
- disableSourceMap: true,
5
- },
6
- };
package/tsconfig.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "declaration": false,
5
- "jsx": "preserve",
6
- "baseUrl": "./",
7
- "isolatedModules": true,
8
- "paths": {},
9
- "types": ["jest"]
10
- },
11
- "include": ["src"]
12
- }