@next-core/build-next-bricks 1.25.0 → 1.25.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/build-next-bricks",
3
- "version": "1.25.0",
3
+ "version": "1.25.1",
4
4
  "description": "Build next bricks",
5
5
  "homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/build-next-bricks",
6
6
  "license": "GPL-3.0",
@@ -9,8 +9,7 @@
9
9
  "bin": {
10
10
  "build-next-bricks": "./bin/build-next-bricks.js",
11
11
  "pre-build-next-bricks": "./bin/pre-build-next-bricks.js",
12
- "post-build-next-bricks": "./bin/post-build-next-bricks.js",
13
- "copy-jsx-d-ts": "./bin/copy-jsx-d-ts.js"
12
+ "post-build-next-bricks": "./bin/post-build-next-bricks.js"
14
13
  },
15
14
  "files": [
16
15
  "bin",
@@ -62,5 +61,5 @@
62
61
  "peerDependencies": {
63
62
  "@next-shared/common-bricks": "*"
64
63
  },
65
- "gitHead": "69a1f401518c74aa11b0d0bc7b03df99ad555373"
64
+ "gitHead": "468441de96cb5b06d367cfe743fcec999944e345"
66
65
  }
@@ -1,26 +0,0 @@
1
- #!/usr/bin/env node
2
- import { existsSync } from "node:fs";
3
- import { copyFile } from "node:fs/promises";
4
- import path from "node:path";
5
-
6
- const packageDir = process.cwd();
7
- const jsxDtsSrc = path.join(packageDir, "src", "jsx.d.ts");
8
- const jsxDtsDestDir = path.join(packageDir, "dist-types");
9
- const jsxDtsDest = path.join(jsxDtsDestDir, "jsx.d.ts");
10
-
11
- async function copyJsxDts() {
12
- try {
13
- if (!existsSync(jsxDtsSrc)) {
14
- console.log(`Source file ${jsxDtsSrc} does not exist. Skipping copy.`);
15
- return;
16
- }
17
-
18
- await copyFile(jsxDtsSrc, jsxDtsDest);
19
- console.log(`Copied ${jsxDtsSrc} to ${jsxDtsDest}`);
20
- } catch (error) {
21
- console.error("Error copying jsx.d.ts:", error);
22
- process.exit(1);
23
- }
24
- }
25
-
26
- copyJsxDts();