Skip to content

Commit 941c66c

Browse files
committed
chore: cr
1 parent c6e94e9 commit 941c66c

File tree

5 files changed

+37
-256
lines changed

5 files changed

+37
-256
lines changed

crates/rspack_binding_builder_testing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build:debug": "rspack-builder --profile release-debug",
1616
"build:ci": "rspack-builder --profile ci",
1717
"build:profiling": "rspack-builder --profile profiling",
18-
"build:release": "node scripts/build.js --profile release"
18+
"build:release": "rspack-builder --profile release"
1919
},
2020
"homepage": "https://rspack.rs",
2121
"bugs": "https://github.com/web-infra-dev/rspack/issues",

crates/rspack_binding_builder_testing/scripts/build.js

Lines changed: 0 additions & 63 deletions
This file was deleted.

packages/binding-builder-cli/LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2022-present Bytedance, Inc. and its affiliates.
4+
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
if (positionals.length > 0) {
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

packages/binding-builder-cli/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ async function build() {
375375
console.log("Build completed successfully");
376376

377377
// Fix an issue where napi cli does not generate `string_enum` with `enum`s.
378-
const dts = path.resolve(buildOptions.cwd, "binding.d.ts");
378+
const dts = path.resolve(buildOptions.cwd, buildOptions.dts);
379379
let dtsContent = readFileSync(dts, "utf8");
380380

381381
const headers = [readFileSync(path.resolve(__dirname, "banner.d.ts"))];

0 commit comments

Comments
 (0)