jiek 2.1.7 → 2.1.9

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.
@@ -77,7 +77,6 @@ async function getSelectedProjectsGraph(filter = commander.program.getOptionValu
77
77
  const pnpmWorkspaceFilePath = path__default.default.resolve(wd, "pnpm-workspace.yaml");
78
78
  const pnpmWorkspaceFileContent = fs__default.default.readFileSync(pnpmWorkspaceFilePath, "utf-8");
79
79
  const pnpmWorkspace = jsYaml.load(pnpmWorkspaceFileContent);
80
- console.log({ root, wd, filter });
81
80
  if (root === wd && !filter) {
82
81
  throw new Error("root path is workspace root, please provide a filter");
83
82
  }
@@ -117,7 +116,7 @@ async function getSelectedProjectsGraph(filter = commander.program.getOptionValu
117
116
 
118
117
  var name = "jiek";
119
118
  var type = "module";
120
- var version = "2.1.6";
119
+ var version = "2.1.8";
121
120
  var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
122
121
  var author = "YiJie <yijie4188@gmail.com>";
123
122
  var repository = {
@@ -141,7 +140,8 @@ var files = [
141
140
  ];
142
141
  var scripts = {
143
142
  prepublish: "jb -nm && jk",
144
- postpublish: "jk"
143
+ postpublish: "jk",
144
+ test: "vitest run"
145
145
  };
146
146
  var exports$1 = {
147
147
  "./package.json": "./package.json",
@@ -69,7 +69,6 @@ async function getSelectedProjectsGraph(filter = program.getOptionValue("filter"
69
69
  const pnpmWorkspaceFilePath = path.resolve(wd, "pnpm-workspace.yaml");
70
70
  const pnpmWorkspaceFileContent = fs.readFileSync(pnpmWorkspaceFilePath, "utf-8");
71
71
  const pnpmWorkspace = load(pnpmWorkspaceFileContent);
72
- console.log({ root, wd, filter });
73
72
  if (root === wd && !filter) {
74
73
  throw new Error("root path is workspace root, please provide a filter");
75
74
  }
@@ -109,7 +108,7 @@ async function getSelectedProjectsGraph(filter = program.getOptionValue("filter"
109
108
 
110
109
  var name = "jiek";
111
110
  var type = "module";
112
- var version = "2.1.6";
111
+ var version = "2.1.8";
113
112
  var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
114
113
  var author = "YiJie <yijie4188@gmail.com>";
115
114
  var repository = {
@@ -133,7 +132,8 @@ var files = [
133
132
  ];
134
133
  var scripts = {
135
134
  prepublish: "jb -nm && jk",
136
- postpublish: "jk"
135
+ postpublish: "jk",
136
+ test: "vitest run"
137
137
  };
138
138
  var exports = {
139
139
  "./package.json": "./package.json",
package/dist/cli.cjs CHANGED
@@ -101,7 +101,6 @@ async function getSelectedProjectsGraph(filter = commander.program.getOptionValu
101
101
  const pnpmWorkspaceFilePath = path__default.default.resolve(wd, "pnpm-workspace.yaml");
102
102
  const pnpmWorkspaceFileContent = fs__default.default.readFileSync(pnpmWorkspaceFilePath, "utf-8");
103
103
  const pnpmWorkspace = jsYaml.load(pnpmWorkspaceFileContent);
104
- console.log({ root, wd, filter });
105
104
  if (root === wd && !filter) {
106
105
  throw new Error("root path is workspace root, please provide a filter");
107
106
  }
package/dist/cli.js CHANGED
@@ -71,7 +71,6 @@ async function getSelectedProjectsGraph(filter = program.getOptionValue("filter"
71
71
  const pnpmWorkspaceFilePath = path.resolve(wd, "pnpm-workspace.yaml");
72
72
  const pnpmWorkspaceFileContent = fs.readFileSync(pnpmWorkspaceFilePath, "utf-8");
73
73
  const pnpmWorkspace = load(pnpmWorkspaceFileContent);
74
- console.log({ root, wd, filter });
75
74
  if (root === wd && !filter) {
76
75
  throw new Error("root path is workspace root, please provide a filter");
77
76
  }
@@ -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.7",
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,
@@ -51,7 +51,6 @@ export async function getSelectedProjectsGraph(
51
51
  const pnpmWorkspace = load(pnpmWorkspaceFileContent) as {
52
52
  packages: string[]
53
53
  }
54
- console.log({ root, wd, filter })
55
54
  if (root === wd && !filter) {
56
55
  throw new Error('root path is workspace root, please provide a filter')
57
56
  // TODO inquirer prompt support user select packages