@deot/dev-builder 2.6.0 → 2.6.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/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -127,8 +127,8 @@ const run$3 = async (options) => {
|
|
|
127
127
|
outputs.forEach((file) => {
|
|
128
128
|
let stat = fs.statSync(path__namespace.resolve(outDir, file));
|
|
129
129
|
stats.push({
|
|
130
|
-
file: file.replace(/^(.*)(
|
|
131
|
-
format: /\.style\.css$/.test(file) ? "css" : /\.umd\.cjs$/.test(file) ? "umd" : /\.cjs$/.test(file) ? "cjs" : /\.iife\.
|
|
130
|
+
file: file.replace(/^(.*)(\.umd\.cjs|\.iife\.js)/, "$1.ts").replace(/^(.*)(\.js|\.cjs)/, "$1.ts"),
|
|
131
|
+
format: /\.style\.css$/.test(file) ? "css" : /\.umd\.cjs$/.test(file) ? "umd" : /\.cjs$/.test(file) ? "cjs" : /\.iife\.js$/.test(file) ? "iife" : "es",
|
|
132
132
|
size: stat.size
|
|
133
133
|
});
|
|
134
134
|
});
|
package/dist/index.js
CHANGED
|
@@ -101,8 +101,8 @@ const run$3 = async (options) => {
|
|
|
101
101
|
outputs.forEach((file) => {
|
|
102
102
|
let stat = fs$1.statSync(path.resolve(outDir, file));
|
|
103
103
|
stats.push({
|
|
104
|
-
file: file.replace(/^(.*)(
|
|
105
|
-
format: /\.style\.css$/.test(file) ? "css" : /\.umd\.cjs$/.test(file) ? "umd" : /\.cjs$/.test(file) ? "cjs" : /\.iife\.
|
|
104
|
+
file: file.replace(/^(.*)(\.umd\.cjs|\.iife\.js)/, "$1.ts").replace(/^(.*)(\.js|\.cjs)/, "$1.ts"),
|
|
105
|
+
format: /\.style\.css$/.test(file) ? "css" : /\.umd\.cjs$/.test(file) ? "umd" : /\.cjs$/.test(file) ? "cjs" : /\.iife\.js$/.test(file) ? "iife" : "es",
|
|
106
106
|
size: stat.size
|
|
107
107
|
});
|
|
108
108
|
});
|