@ttoss/config 1.28.0 → 1.28.1
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/dist/esm/index.js +21 -0
- package/dist/index.js +25 -0
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -16,6 +16,14 @@ var configCreator = (defaultConfig7 = {}) => {
|
|
|
16
16
|
// src/babel.ts
|
|
17
17
|
var defaultConfig = {
|
|
18
18
|
presets: [
|
|
19
|
+
/**
|
|
20
|
+
* `loose: true` to avoid the Storybook warning:
|
|
21
|
+
*
|
|
22
|
+
* > Though the "loose" option was set to "false" in your @babel/preset-env
|
|
23
|
+
* > config, it will not be used for @babel/plugin-proposal-private-property-in-object
|
|
24
|
+
* > since the "loose" mode option was set to "true"
|
|
25
|
+
* > for @babel/plugin-proposal-private-methods.
|
|
26
|
+
*/
|
|
19
27
|
["@babel/preset-env", { loose: true, targets: { node: "current" } }],
|
|
20
28
|
"@babel/preset-typescript",
|
|
21
29
|
["@babel/preset-react", { runtime: "automatic" }]
|
|
@@ -48,6 +56,13 @@ var defaultConfig3 = {
|
|
|
48
56
|
enableGlobally: true
|
|
49
57
|
},
|
|
50
58
|
moduleNameMapper: {
|
|
59
|
+
/**
|
|
60
|
+
* Remove CSS import errors:
|
|
61
|
+
*
|
|
62
|
+
* Jest failed to parse a file. This happens e.g. when your code or its
|
|
63
|
+
* dependencies use non-standard JavaScript syntax, or when Jest is not
|
|
64
|
+
* configured to support such syntax.
|
|
65
|
+
*/
|
|
51
66
|
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
|
|
52
67
|
}
|
|
53
68
|
};
|
|
@@ -77,7 +92,13 @@ var defaultConfig6 = {
|
|
|
77
92
|
dts: true,
|
|
78
93
|
entryPoints: ["src/index.ts"],
|
|
79
94
|
format: ["cjs", "esm"],
|
|
95
|
+
/**
|
|
96
|
+
* legacyOutput `true` because some libraries don't support `.mjs`.
|
|
97
|
+
*/
|
|
80
98
|
legacyOutput: true,
|
|
99
|
+
/**
|
|
100
|
+
* Becomes difficult to debug if code is minified.
|
|
101
|
+
*/
|
|
81
102
|
minify: false,
|
|
82
103
|
banner: {
|
|
83
104
|
js: `/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */`
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
return to;
|
|
20
20
|
};
|
|
21
21
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
26
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
27
|
mod
|
|
24
28
|
));
|
|
@@ -52,6 +56,14 @@ var configCreator = (defaultConfig7 = {}) => {
|
|
|
52
56
|
// src/babel.ts
|
|
53
57
|
var defaultConfig = {
|
|
54
58
|
presets: [
|
|
59
|
+
/**
|
|
60
|
+
* `loose: true` to avoid the Storybook warning:
|
|
61
|
+
*
|
|
62
|
+
* > Though the "loose" option was set to "false" in your @babel/preset-env
|
|
63
|
+
* > config, it will not be used for @babel/plugin-proposal-private-property-in-object
|
|
64
|
+
* > since the "loose" mode option was set to "true"
|
|
65
|
+
* > for @babel/plugin-proposal-private-methods.
|
|
66
|
+
*/
|
|
55
67
|
["@babel/preset-env", { loose: true, targets: { node: "current" } }],
|
|
56
68
|
"@babel/preset-typescript",
|
|
57
69
|
["@babel/preset-react", { runtime: "automatic" }]
|
|
@@ -84,6 +96,13 @@ var defaultConfig3 = {
|
|
|
84
96
|
enableGlobally: true
|
|
85
97
|
},
|
|
86
98
|
moduleNameMapper: {
|
|
99
|
+
/**
|
|
100
|
+
* Remove CSS import errors:
|
|
101
|
+
*
|
|
102
|
+
* Jest failed to parse a file. This happens e.g. when your code or its
|
|
103
|
+
* dependencies use non-standard JavaScript syntax, or when Jest is not
|
|
104
|
+
* configured to support such syntax.
|
|
105
|
+
*/
|
|
87
106
|
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
|
|
88
107
|
}
|
|
89
108
|
};
|
|
@@ -113,7 +132,13 @@ var defaultConfig6 = {
|
|
|
113
132
|
dts: true,
|
|
114
133
|
entryPoints: ["src/index.ts"],
|
|
115
134
|
format: ["cjs", "esm"],
|
|
135
|
+
/**
|
|
136
|
+
* legacyOutput `true` because some libraries don't support `.mjs`.
|
|
137
|
+
*/
|
|
116
138
|
legacyOutput: true,
|
|
139
|
+
/**
|
|
140
|
+
* Becomes difficult to debug if code is minified.
|
|
141
|
+
*/
|
|
117
142
|
minify: false,
|
|
118
143
|
banner: {
|
|
119
144
|
js: `/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/config",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.1",
|
|
4
4
|
"description": "Default configuration for packages.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"@commitlint/config-conventional": "^17.3.0",
|
|
27
27
|
"@formatjs/ts-transformer": "^3.11.5",
|
|
28
28
|
"babel-plugin-formatjs": "^10.3.35",
|
|
29
|
-
"deepmerge": "^4.
|
|
29
|
+
"deepmerge": "^4.3.0",
|
|
30
30
|
"identity-obj-proxy": "^3.0.0",
|
|
31
31
|
"prettier-package-json": "^2.8.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@jest/types": "^29.3.1",
|
|
35
35
|
"@types/jest": "^29.4.0",
|
|
36
|
-
"jest": "^29.4.
|
|
36
|
+
"jest": "^29.4.2"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [],
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "d4df96176c1d3fce4ebf7842de5847a618a33d9e"
|
|
43
43
|
}
|