jiek 2.1.8 → 2.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -116,7 +116,7 @@ async function getSelectedProjectsGraph(filter = commander.program.getOptionValu
116
116
 
117
117
  var name = "jiek";
118
118
  var type = "module";
119
- var version = "2.1.7";
119
+ var version = "2.1.8";
120
120
  var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
121
121
  var author = "YiJie <yijie4188@gmail.com>";
122
122
  var repository = {
@@ -140,7 +140,8 @@ var files = [
140
140
  ];
141
141
  var scripts = {
142
142
  prepublish: "jb -nm && jk",
143
- postpublish: "jk"
143
+ postpublish: "jk",
144
+ test: "vitest run"
144
145
  };
145
146
  var exports$1 = {
146
147
  "./package.json": "./package.json",
@@ -108,7 +108,7 @@ async function getSelectedProjectsGraph(filter = program.getOptionValue("filter"
108
108
 
109
109
  var name = "jiek";
110
110
  var type = "module";
111
- var version = "2.1.7";
111
+ var version = "2.1.8";
112
112
  var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
113
113
  var author = "YiJie <yijie4188@gmail.com>";
114
114
  var repository = {
@@ -132,7 +132,8 @@ var files = [
132
132
  ];
133
133
  var scripts = {
134
134
  prepublish: "jb -nm && jk",
135
- postpublish: "jk"
135
+ postpublish: "jk",
136
+ test: "vitest run"
136
137
  };
137
138
  var exports = {
138
139
  "./package.json": "./package.json",
@@ -4692,7 +4692,9 @@ const generateConfigs = (context, options = {}) => {
4692
4692
  const tsOutputSuffix = jsOutputSuffix.replace(/(\.[cm]?)js$/, ".d$1ts");
4693
4693
  const { js: jsOutput, dts: dtsOutput } = resolveOutputControls(context, build.output);
4694
4694
  const rollupOptions = [];
4695
- const commonPlugins = [];
4695
+ const commonPlugins = [
4696
+ pluginNodeResolve.nodeResolve({ exportConditions })
4697
+ ];
4696
4698
  if (jsOutput && !WITHOUT_JS) {
4697
4699
  const sourcemap = typeof options?.output?.sourcemap === "object" ? options.output.sourcemap.js : options?.output?.sourcemap;
4698
4700
  const builder = resolvedBuilderOptions.type === "esbuild" ? import('rollup-plugin-esbuild').then(
@@ -4727,7 +4729,6 @@ const generateConfigs = (context, options = {}) => {
4727
4729
  ],
4728
4730
  plugins: [
4729
4731
  ...commonPlugins,
4730
- pluginNodeResolve.nodeResolve({ exportConditions }),
4731
4732
  import('rollup-plugin-postcss').then(
4732
4733
  ({ default: postcss }) => postcss({
4733
4734
  extract: path.resolve(output.replace(/\.[cm]?js$/, ".css")),
@@ -4762,7 +4763,6 @@ const generateConfigs = (context, options = {}) => {
4762
4763
  ],
4763
4764
  plugins: [
4764
4765
  ...commonPlugins,
4765
- pluginNodeResolve.nodeResolve({ exportConditions }),
4766
4766
  skip({ patterns: [STYLE_REGEXP] }),
4767
4767
  rollupPluginDts.dts({
4768
4768
  respectExternal: true,
@@ -4679,7 +4679,9 @@ const generateConfigs = (context, options = {}) => {
4679
4679
  const tsOutputSuffix = jsOutputSuffix.replace(/(\.[cm]?)js$/, ".d$1ts");
4680
4680
  const { js: jsOutput, dts: dtsOutput } = resolveOutputControls(context, build.output);
4681
4681
  const rollupOptions = [];
4682
- const commonPlugins = [];
4682
+ const commonPlugins = [
4683
+ nodeResolve({ exportConditions })
4684
+ ];
4683
4685
  if (jsOutput && !WITHOUT_JS) {
4684
4686
  const sourcemap = typeof options?.output?.sourcemap === "object" ? options.output.sourcemap.js : options?.output?.sourcemap;
4685
4687
  const builder = resolvedBuilderOptions.type === "esbuild" ? import('rollup-plugin-esbuild').then(
@@ -4714,7 +4716,6 @@ const generateConfigs = (context, options = {}) => {
4714
4716
  ],
4715
4717
  plugins: [
4716
4718
  ...commonPlugins,
4717
- nodeResolve({ exportConditions }),
4718
4719
  import('rollup-plugin-postcss').then(
4719
4720
  ({ default: postcss }) => postcss({
4720
4721
  extract: resolve(output.replace(/\.[cm]?js$/, ".css")),
@@ -4749,7 +4750,6 @@ const generateConfigs = (context, options = {}) => {
4749
4750
  ],
4750
4751
  plugins: [
4751
4752
  ...commonPlugins,
4752
- nodeResolve({ exportConditions }),
4753
4753
  skip({ patterns: [STYLE_REGEXP] }),
4754
4754
  dts({
4755
4755
  respectExternal: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jiek",
3
3
  "type": "module",
4
- "version": "2.1.8",
4
+ "version": "2.1.9",
5
5
  "description": "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.",
6
6
  "author": "YiJie <yijie4188@gmail.com>",
7
7
  "repository": {
@@ -112,7 +112,8 @@
112
112
  }
113
113
  },
114
114
  "scripts": {
115
- "prepublish": "jb -nm && jk"
115
+ "prepublish": "jb -nm && jk",
116
+ "test": "vitest run"
116
117
  },
117
118
  "typesVersions": {
118
119
  "<5.0": {
@@ -318,7 +318,9 @@ const generateConfigs = (context: ConfigGenerateContext, options: TemplateOption
318
318
  const { js: jsOutput, dts: dtsOutput } = resolveOutputControls(context, build.output)
319
319
  const rollupOptions: RollupOptions[] = []
320
320
 
321
- const commonPlugins: Plugin[] = []
321
+ const commonPlugins: Plugin[] = [
322
+ nodeResolve({ exportConditions })
323
+ ]
322
324
  if (jsOutput && !WITHOUT_JS) {
323
325
  const sourcemap = typeof options?.output?.sourcemap === 'object'
324
326
  ? options.output.sourcemap.js
@@ -375,7 +377,6 @@ const generateConfigs = (context: ConfigGenerateContext, options: TemplateOption
375
377
  ],
376
378
  plugins: [
377
379
  ...commonPlugins,
378
- nodeResolve({ exportConditions }),
379
380
  import('rollup-plugin-postcss')
380
381
  .then(({ default: postcss }) =>
381
382
  postcss({
@@ -426,7 +427,6 @@ const generateConfigs = (context: ConfigGenerateContext, options: TemplateOption
426
427
  ],
427
428
  plugins: [
428
429
  ...commonPlugins,
429
- nodeResolve({ exportConditions }),
430
430
  skip({ patterns: [STYLE_REGEXP] }),
431
431
  dts({
432
432
  respectExternal: true,