create-rslib 0.6.6 → 0.6.8

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.
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import default_0 from "node:path";
3
- import { fileURLToPath } from "node:url";
4
- import { checkCancel, create, multiselect, select as select_0 } from "create-rstack";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_create_rstack_aeeb76b8__ from "create-rstack";
5
5
  import "node:fs";
6
- const helpers_filename = fileURLToPath(import.meta.url);
7
- const helpers_dirname = default_0.dirname(helpers_filename);
8
- default_0.resolve(helpers_dirname, '../fragments');
6
+ const helpers_filename = (0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.fileURLToPath)(import.meta.url);
7
+ const helpers_dirname = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].dirname(helpers_filename);
8
+ __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(helpers_dirname, '../fragments');
9
9
  const composeTemplateName = ({ template, tools, lang })=>`[${template}]-[${(tools ? Object.keys(tools) : []).sort()}]-${lang}`;
10
10
  const TEMPLATES = [
11
11
  {
@@ -105,7 +105,7 @@ const TEMPLATES = [
105
105
  }
106
106
  }
107
107
  ];
108
- const src_dirname = default_0.dirname(fileURLToPath(import.meta.url));
108
+ const src_dirname = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].dirname((0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.fileURLToPath)(import.meta.url));
109
109
  async function getTemplateName({ template }) {
110
110
  if ('string' == typeof template) {
111
111
  const pair = template.split('-');
@@ -116,7 +116,7 @@ async function getTemplateName({ template }) {
116
116
  ].includes(lang)) return template;
117
117
  return `${template}-ts`;
118
118
  }
119
- const templateName = checkCancel(await select_0({
119
+ const templateName = (0, __WEBPACK_EXTERNAL_MODULE_create_rstack_aeeb76b8__.checkCancel)(await (0, __WEBPACK_EXTERNAL_MODULE_create_rstack_aeeb76b8__.select)({
120
120
  message: 'Select template',
121
121
  options: [
122
122
  {
@@ -133,7 +133,7 @@ async function getTemplateName({ template }) {
133
133
  }
134
134
  ]
135
135
  }));
136
- const language = checkCancel(await select_0({
136
+ const language = (0, __WEBPACK_EXTERNAL_MODULE_create_rstack_aeeb76b8__.checkCancel)(await (0, __WEBPACK_EXTERNAL_MODULE_create_rstack_aeeb76b8__.select)({
137
137
  message: 'Select language',
138
138
  options: [
139
139
  {
@@ -147,7 +147,7 @@ async function getTemplateName({ template }) {
147
147
  ]
148
148
  }));
149
149
  const supportStorybook = 'react' === templateName;
150
- const tools = checkCancel(await multiselect({
150
+ const tools = (0, __WEBPACK_EXTERNAL_MODULE_create_rstack_aeeb76b8__.checkCancel)(await (0, __WEBPACK_EXTERNAL_MODULE_create_rstack_aeeb76b8__.multiselect)({
151
151
  message: 'Select development tools (Use <space> to select, <enter> to continue)',
152
152
  required: false,
153
153
  options: [
@@ -174,8 +174,8 @@ function mapESLintTemplate(templateName) {
174
174
  const language = templateName.split('-').pop();
175
175
  return `vanilla-${language}`;
176
176
  }
177
- create({
178
- root: default_0.resolve(src_dirname, '..'),
177
+ (0, __WEBPACK_EXTERNAL_MODULE_create_rstack_aeeb76b8__.create)({
178
+ root: __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(src_dirname, '..'),
179
179
  name: 'rslib',
180
180
  templates: TEMPLATES.map(({ template, tools, lang })=>composeTemplateName({
181
181
  template,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rslib",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "description": "Create a new Rslib project",
5
5
  "homepage": "https://lib.rsbuild.dev",
6
6
  "repository": {
@@ -28,9 +28,9 @@
28
28
  "@types/fs-extra": "^11.0.4",
29
29
  "@types/node": "^22.8.1",
30
30
  "fs-extra": "^11.3.0",
31
- "rsbuild-plugin-publint": "^0.3.0",
32
- "rslib": "npm:@rslib/core@0.6.5",
33
- "tsx": "^4.19.3",
31
+ "rsbuild-plugin-publint": "^0.3.1",
32
+ "rslib": "npm:@rslib/core@0.6.7",
33
+ "tsx": "^4.19.4",
34
34
  "typescript": "^5.8.3",
35
35
  "@rslib/tsconfig": "0.0.1"
36
36
  },
@@ -9,7 +9,6 @@
9
9
  }
10
10
  },
11
11
  "main": "./dist/index.cjs",
12
- "module": "./dist/index.js",
13
12
  "files": [
14
13
  "dist"
15
14
  ],
@@ -10,7 +10,6 @@
10
10
  }
11
11
  },
12
12
  "main": "./dist/index.cjs",
13
- "module": "./dist/index.js",
14
13
  "types": "./dist/index.d.ts",
15
14
  "files": [
16
15
  "dist"
@@ -9,7 +9,6 @@
9
9
  }
10
10
  },
11
11
  "main": "./dist/index.cjs",
12
- "module": "./dist/index.js",
13
12
  "files": [
14
13
  "dist"
15
14
  ],
@@ -10,7 +10,6 @@
10
10
  }
11
11
  },
12
12
  "main": "./dist/index.cjs",
13
- "module": "./dist/index.js",
14
13
  "types": "./dist/index.d.ts",
15
14
  "files": [
16
15
  "dist"
@@ -7,7 +7,6 @@
7
7
  "import": "./dist/index.js"
8
8
  }
9
9
  },
10
- "module": "./dist/index.js",
11
10
  "files": [
12
11
  "dist"
13
12
  ],
@@ -8,7 +8,6 @@
8
8
  "import": "./dist/index.js"
9
9
  }
10
10
  },
11
- "module": "./dist/index.js",
12
11
  "types": "./dist/index.d.ts",
13
12
  "files": [
14
13
  "dist"
@@ -7,7 +7,6 @@
7
7
  "import": "./dist/index.js"
8
8
  }
9
9
  },
10
- "module": "./dist/index.js",
11
10
  "files": [
12
11
  "dist"
13
12
  ],
@@ -8,7 +8,6 @@
8
8
  "import": "./dist/index.js"
9
9
  }
10
10
  },
11
- "module": "./dist/index.js",
12
11
  "types": "./dist/index.d.ts",
13
12
  "files": [
14
13
  "dist"
@@ -7,7 +7,6 @@
7
7
  "import": "./dist/index.js"
8
8
  }
9
9
  },
10
- "module": "./dist/index.js",
11
10
  "files": [
12
11
  "dist"
13
12
  ],
@@ -16,7 +15,7 @@
16
15
  "dev": "rslib build --watch"
17
16
  },
18
17
  "devDependencies": {
19
- "@rsbuild/plugin-react": "^1.2.0",
18
+ "@rsbuild/plugin-react": "^1.3.0",
20
19
  "@rslib/core": "workspace:*",
21
20
  "react": "^19.1.0"
22
21
  },
@@ -8,7 +8,6 @@
8
8
  "import": "./dist/index.js"
9
9
  }
10
10
  },
11
- "module": "./dist/index.js",
12
11
  "types": "./dist/index.d.ts",
13
12
  "files": [
14
13
  "dist"
@@ -18,7 +17,7 @@
18
17
  "dev": "rslib build --watch"
19
18
  },
20
19
  "devDependencies": {
21
- "@rsbuild/plugin-react": "^1.2.0",
20
+ "@rsbuild/plugin-react": "^1.3.0",
22
21
  "@rslib/core": "workspace:*",
23
22
  "@types/react": "^19.1.2",
24
23
  "react": "^19.1.0",
@@ -7,7 +7,6 @@
7
7
  "import": "./dist/index.js"
8
8
  }
9
9
  },
10
- "module": "./dist/index.js",
11
10
  "files": [
12
11
  "dist"
13
12
  ],
@@ -19,8 +18,8 @@
19
18
  "test": "vitest run"
20
19
  },
21
20
  "devDependencies": {
22
- "@rsbuild/core": "1.3.9",
23
- "@rsbuild/plugin-react": "^1.2.0",
21
+ "@rsbuild/core": "1.3.14",
22
+ "@rsbuild/plugin-react": "^1.3.0",
24
23
  "@rslib/core": "workspace:*",
25
24
  "@storybook/addon-essentials": "^8.6.12",
26
25
  "@storybook/addon-interactions": "^8.6.12",
@@ -8,7 +8,6 @@
8
8
  "import": "./dist/index.js"
9
9
  }
10
10
  },
11
- "module": "./dist/index.js",
12
11
  "types": "./dist/index.d.ts",
13
12
  "files": [
14
13
  "dist"
@@ -21,8 +20,8 @@
21
20
  "test": "vitest run"
22
21
  },
23
22
  "devDependencies": {
24
- "@rsbuild/core": "1.3.9",
25
- "@rsbuild/plugin-react": "^1.2.0",
23
+ "@rsbuild/core": "1.3.14",
24
+ "@rsbuild/plugin-react": "^1.3.0",
26
25
  "@rslib/core": "workspace:*",
27
26
  "@storybook/addon-essentials": "^8.6.12",
28
27
  "@storybook/addon-interactions": "^8.6.12",
@@ -7,7 +7,6 @@
7
7
  "import": "./dist/index.js"
8
8
  }
9
9
  },
10
- "module": "./dist/index.js",
11
10
  "files": [
12
11
  "dist"
13
12
  ],
@@ -18,8 +17,8 @@
18
17
  "storybook": "storybook dev"
19
18
  },
20
19
  "devDependencies": {
21
- "@rsbuild/core": "1.3.9",
22
- "@rsbuild/plugin-react": "^1.2.0",
20
+ "@rsbuild/core": "1.3.14",
21
+ "@rsbuild/plugin-react": "^1.3.0",
23
22
  "@rslib/core": "workspace:*",
24
23
  "@storybook/addon-essentials": "^8.6.12",
25
24
  "@storybook/addon-interactions": "^8.6.12",
@@ -8,7 +8,6 @@
8
8
  "import": "./dist/index.js"
9
9
  }
10
10
  },
11
- "module": "./dist/index.js",
12
11
  "types": "./dist/index.d.ts",
13
12
  "files": [
14
13
  "dist"
@@ -20,8 +19,8 @@
20
19
  "storybook": "storybook dev"
21
20
  },
22
21
  "devDependencies": {
23
- "@rsbuild/core": "1.3.9",
24
- "@rsbuild/plugin-react": "^1.2.0",
22
+ "@rsbuild/core": "1.3.14",
23
+ "@rsbuild/plugin-react": "^1.3.0",
25
24
  "@rslib/core": "workspace:*",
26
25
  "@storybook/addon-essentials": "^8.6.12",
27
26
  "@storybook/addon-interactions": "^8.6.12",
@@ -7,7 +7,6 @@
7
7
  "import": "./dist/index.js"
8
8
  }
9
9
  },
10
- "module": "./dist/index.js",
11
10
  "files": [
12
11
  "dist"
13
12
  ],
@@ -17,7 +16,7 @@
17
16
  "test": "vitest run"
18
17
  },
19
18
  "devDependencies": {
20
- "@rsbuild/plugin-react": "^1.2.0",
19
+ "@rsbuild/plugin-react": "^1.3.0",
21
20
  "@rslib/core": "workspace:*",
22
21
  "@testing-library/jest-dom": "^6.6.3",
23
22
  "@testing-library/react": "^16.3.0",
@@ -8,7 +8,6 @@
8
8
  "import": "./dist/index.js"
9
9
  }
10
10
  },
11
- "module": "./dist/index.js",
12
11
  "types": "./dist/index.d.ts",
13
12
  "files": [
14
13
  "dist"
@@ -19,7 +18,7 @@
19
18
  "test": "vitest run"
20
19
  },
21
20
  "devDependencies": {
22
- "@rsbuild/plugin-react": "^1.2.0",
21
+ "@rsbuild/plugin-react": "^1.3.0",
23
22
  "@rslib/core": "workspace:*",
24
23
  "@testing-library/jest-dom": "^6.6.3",
25
24
  "@testing-library/react": "^16.3.0",