-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(javascript): use tsup bundler (#3640) (generated) [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
- Loading branch information
1 parent
ff0c996
commit 4a39f64
Showing
61 changed files
with
1,118 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
clients/algoliasearch-client-javascript/packages/algoliasearch/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// eslint-disable-next-line import/no-unresolved | ||
export * from './dist/algoliasearch/builds/node'; | ||
export * from './dist/node'; |
2 changes: 1 addition & 1 deletion
2
clients/algoliasearch-client-javascript/packages/algoliasearch/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// eslint-disable-next-line import/no-commonjs,import/extensions | ||
module.exports = require('./dist/algoliasearch.cjs'); | ||
module.exports = require('./dist/node.cjs'); |
2 changes: 1 addition & 1 deletion
2
clients/algoliasearch-client-javascript/packages/algoliasearch/lite.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// eslint-disable-next-line import/no-unresolved | ||
export * from './dist/lite/builds/node'; | ||
export * from './dist/lite/node'; |
2 changes: 1 addition & 1 deletion
2
clients/algoliasearch-client-javascript/packages/algoliasearch/lite.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// eslint-disable-next-line import/no-commonjs,import/extensions | ||
module.exports = require('./dist/lite/lite.cjs'); | ||
module.exports = require('./dist/lite/builds/node.cjs'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 30 additions & 5 deletions
35
clients/algoliasearch-client-javascript/packages/algoliasearch/rollup.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,30 @@ | ||
import { buildConfigs } from '../../base.rollup.config.js'; | ||
|
||
import pkg from './package.json' with { type: 'json' }; | ||
|
||
export default buildConfigs(pkg); | ||
export default [ | ||
{ | ||
input: 'dist/lite/builds/browser.min.js', | ||
external: ['dom'], | ||
output: { | ||
esModule: false, | ||
file: 'dist/lite/builds/browser.umd.js', | ||
name: 'lite', | ||
format: 'umd', | ||
sourcemap: false, | ||
globals: { | ||
['lite']: 'lite', | ||
}, | ||
}, | ||
}, | ||
{ | ||
input: 'dist/browser.min.js', | ||
external: ['dom'], | ||
output: { | ||
esModule: false, | ||
file: 'dist/algoliasearch.umd.js', | ||
name: 'algoliasearch', | ||
format: 'umd', | ||
sourcemap: false, | ||
globals: { | ||
['algoliasearch']: 'algoliasearch', | ||
}, | ||
}, | ||
} | ||
] |
Oops, something went wrong.