forked from Shopify/shopify-app-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loom.config.ts
27 lines (26 loc) · 1.29 KB
/
loom.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import {createPackage, createProjectPlugin} from '@shopify/loom';
import {buildLibrary} from '@shopify/loom-plugin-build-library';
export default createPackage((pkg) => {
pkg.entry({root: './src/redis.ts'});
pkg.use(
buildLibrary({
// Required. A browserslist string for specifying your target output.
// Use browser targets (e.g. `'defaults'`) if your package targets the browser,
// node targets (e.g. `'node 12.22'`) if your package targets node
// or both (e.g.`'defaults, node 12.22'`) if your package targets both
targets: 'node 16',
// Optional. Defaults to false. Defines if commonjs outputs should be generated.
commonjs: true,
// Optional. Defaults to false. Defines if esmodules outputs should be generated.
esmodules: false,
// Optional. Defaults to false. Defines if esnext outputs should be generated.
esnext: false,
// Optional. Defaults to true. Defines if entrypoints should be written at
// the root of the repository. You can disable this if you have a single
// entrypoint or if your package uses the `exports` key in package.json
rootEntrypoints: false,
// Optional. Defaults to 'node'. Defines if the jest environment should be 'node' or 'jsdom'.
jestTestEnvironment: 'node',
}),
);
});