Skip to content

Commit 4469437

Browse files
fix(package.json): Wrong file names on adjusted exports from package.json (#249)
* fixed filename in exports * Fixed filenames to correctly reflect es5.js files in logs and stats (Only a Cosmetic correction)
1 parent 2748a53 commit 4469437

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

esbuild.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ await esbuild.build({
7676
format: 'esm',
7777
plugins: [
7878
AnalyzerPlugin({
79-
outfile: 'stats/fsxa-api-esm.html',
79+
outfile: 'stats/fsxa-api-es5.html',
8080
})
8181
],
8282
})
@@ -105,7 +105,7 @@ await esbuild.build({
105105
format: 'esm',
106106
plugins: [
107107
AnalyzerPlugin({
108-
outfile: 'stats/fsxa-proxy-api-esm.html',
108+
outfile: 'stats/fsxa-proxy-api-es5.html',
109109
})
110110
],
111111
})
@@ -135,7 +135,7 @@ console.log('─'.repeat(60))
135135

136136
console.log('\n✓ Bundle analysis reports generated:')
137137
console.log(' - stats/fsxa-api-cjs.html')
138-
console.log(' - stats/fsxa-api-esm.html')
138+
console.log(' - stats/fsxa-api-es5.html')
139139
console.log(' - stats/fsxa-proxy-api-cjs.html')
140-
console.log(' - stats/fsxa-proxy-api-esm.html')
140+
console.log(' - stats/fsxa-proxy-api-es5.html')
141141
console.log('\nBuild complete!')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"exports": {
77
".": {
88
"types": "./dist/types/index.d.ts",
9-
"import": "./dist/fsxa-api.esm.js",
9+
"import": "./dist/fsxa-api.es5.js",
1010
"require": "./dist/fsxa-api.cjs.js",
1111
"default": "./dist/fsxa-api.cjs.js"
1212
}

proxy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"exports": {
1414
".": {
1515
"types": "./dist/types/index.d.ts",
16-
"import": "./dist/fsxa-proxy-api.csm.js",
16+
"import": "./dist/fsxa-proxy-api.es5.js",
1717
"require": "./dist/fsxa-proxy-api.cjs.js",
1818
"default": "./dist/fsxa-proxy-api.cjs.js"
1919
}

0 commit comments

Comments
 (0)