bmdl-sdk 2.0.37 → 2.0.39
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/BUILD_ID +1 -1
- package/dist/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js +1 -1
- package/dist/build/chunks/{node_modules_20v-8wl._.js → node_modules_05oslht._.js} +1424 -1869
- package/dist/build/chunks/node_modules_05oslht._.js.map +47 -0
- package/dist/build-manifest.json +6 -6
- package/dist/cache/.tsbuildinfo +1 -1
- package/dist/diagnostics/route-bundle-stats.json +8 -8
- package/dist/fallback-build-manifest.json +3 -3
- package/dist/next-server.js.nft.json +1 -1
- package/dist/server/app/_global-error/page/build-manifest.json +3 -3
- package/dist/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/dist/server/app/_global-error.html +1 -1
- package/dist/server/app/_global-error.rsc +1 -1
- package/dist/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/server/app/_not-found/page/build-manifest.json +3 -3
- package/dist/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/server/app/_not-found.html +1 -1
- package/dist/server/app/_not-found.rsc +2 -2
- package/dist/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/dist/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/dist/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/server/app/api/component/route.js +1 -1
- package/dist/server/app/api/component/route.js.nft.json +1 -1
- package/dist/server/app/index.html +1 -1
- package/dist/server/app/index.rsc +3 -3
- package/dist/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/dist/server/app/index.segments/_full.segment.rsc +3 -3
- package/dist/server/app/index.segments/_head.segment.rsc +1 -1
- package/dist/server/app/index.segments/_index.segment.rsc +2 -2
- package/dist/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/server/app/page/build-manifest.json +3 -3
- package/dist/server/app/page.js.nft.json +1 -1
- package/dist/server/app/page_client-reference-manifest.js +1 -1
- package/dist/server/chunks/[root-of-the-server]__1ewn43n._.js +11 -0
- package/dist/server/chunks/[root-of-the-server]__1ewn43n._.js.map +1 -0
- package/dist/server/chunks/ssr/{[root-of-the-server]__1vhgpuw._.js → [root-of-the-server]__1tcd_jn._.js} +2 -2
- package/dist/server/chunks/ssr/[root-of-the-server]__1tcd_jn._.js.map +1 -0
- package/dist/server/chunks/ssr/{[root-of-the-server]__1fno3kn._.js → [root-of-the-server]__1w1ep09._.js} +2 -2
- package/dist/server/chunks/ssr/[root-of-the-server]__1w1ep09._.js.map +1 -0
- package/dist/server/chunks/ssr/[root-of-the-server]__214wyau._.js +1 -1
- package/dist/server/chunks/ssr/[root-of-the-server]__214wyau._.js.map +1 -1
- package/dist/server/chunks/ssr/{node_modules_next_dist_18tu5cb._.js → node_modules_next_dist_1vgd_ru._.js} +2 -2
- package/dist/server/chunks/ssr/node_modules_next_dist_1vgd_ru._.js.map +1 -0
- package/dist/server/chunks/ssr/src_components_ComponentWidget_DynamicComponentLoader_tsx_08tgduo._.js +4 -4
- package/dist/server/chunks/ssr/src_components_ComponentWidget_DynamicComponentLoader_tsx_08tgduo._.js.map +1 -1
- package/dist/server/middleware-build-manifest.js +6 -6
- package/dist/server/pages/404.html +1 -1
- package/dist/server/pages/500.html +1 -1
- package/dist/standalone/dist/BUILD_ID +1 -1
- package/dist/standalone/dist/build-manifest.json +6 -6
- package/dist/standalone/dist/server/app/_global-error/page/build-manifest.json +3 -3
- package/dist/standalone/dist/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/standalone/dist/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/dist/standalone/dist/server/app/_global-error.html +1 -1
- package/dist/standalone/dist/server/app/_global-error.rsc +1 -1
- package/dist/standalone/dist/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_not-found/page/build-manifest.json +3 -3
- package/dist/standalone/dist/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/standalone/dist/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/standalone/dist/server/app/_not-found.html +1 -1
- package/dist/standalone/dist/server/app/_not-found.rsc +2 -2
- package/dist/standalone/dist/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/dist/standalone/dist/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/dist/standalone/dist/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/dist/server/app/api/component/route.js +1 -1
- package/dist/standalone/dist/server/app/api/component/route.js.nft.json +1 -1
- package/dist/standalone/dist/server/app/index.html +1 -1
- package/dist/standalone/dist/server/app/index.rsc +3 -3
- package/dist/standalone/dist/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/dist/standalone/dist/server/app/index.segments/_full.segment.rsc +3 -3
- package/dist/standalone/dist/server/app/index.segments/_head.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/index.segments/_index.segment.rsc +2 -2
- package/dist/standalone/dist/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/dist/server/app/page/build-manifest.json +3 -3
- package/dist/standalone/dist/server/app/page.js.nft.json +1 -1
- package/dist/standalone/dist/server/app/page_client-reference-manifest.js +1 -1
- package/dist/standalone/dist/server/chunks/[root-of-the-server]__1ewn43n._.js +11 -0
- package/dist/standalone/dist/server/chunks/ssr/{[root-of-the-server]__1vhgpuw._.js → [root-of-the-server]__1tcd_jn._.js} +2 -2
- package/dist/standalone/dist/server/chunks/ssr/{[root-of-the-server]__1fno3kn._.js → [root-of-the-server]__1w1ep09._.js} +2 -2
- package/dist/standalone/dist/server/chunks/ssr/[root-of-the-server]__214wyau._.js +1 -1
- package/dist/standalone/dist/server/chunks/ssr/{node_modules_next_dist_18tu5cb._.js → node_modules_next_dist_1vgd_ru._.js} +2 -2
- package/dist/standalone/dist/server/chunks/ssr/src_components_ComponentWidget_DynamicComponentLoader_tsx_08tgduo._.js +4 -4
- package/dist/standalone/dist/server/middleware-build-manifest.js +6 -6
- package/dist/standalone/dist/server/pages/404.html +1 -1
- package/dist/standalone/dist/server/pages/500.html +1 -1
- package/dist/standalone/dist/static/chunks/0atut6a2uuyid.js +5 -0
- package/dist/standalone/dist/static/chunks/1jq4o6yq14o4c.js +31 -0
- package/dist/standalone/dist/static/chunks/2c5nzc2ljqups.css +3 -0
- package/dist/standalone/dist/static/chunks/2cwj6u4m-2xhv.js +4 -0
- package/dist/{static/chunks/turbopack-2d7f32bwbsmp8.js → standalone/dist/static/chunks/turbopack-38l7qwik-h828.js} +1 -1
- package/dist/standalone/node_modules/@swc/core/LICENSE +201 -0
- package/dist/standalone/node_modules/@swc/core/README.md +100 -0
- package/dist/standalone/node_modules/@swc/core/Visitor.js +1399 -0
- package/dist/standalone/node_modules/@swc/core/binding.js +368 -0
- package/dist/standalone/node_modules/@swc/core/index.js +466 -0
- package/dist/standalone/node_modules/@swc/core/package.json +119 -0
- package/dist/standalone/node_modules/@swc/core/postinstall.js +148 -0
- package/dist/standalone/node_modules/@swc/core/spack.js +87 -0
- package/dist/standalone/node_modules/@swc/core/util.js +103 -0
- package/dist/standalone/node_modules/@swc/core-win32-x64-msvc/package.json +43 -0
- package/dist/standalone/node_modules/@swc/core-win32-x64-msvc/swc.win32-x64-msvc.node +0 -0
- package/dist/standalone/package.json +8 -1
- package/dist/static/chunks/0atut6a2uuyid.js +5 -0
- package/dist/static/chunks/1jq4o6yq14o4c.js +31 -0
- package/dist/static/chunks/2c5nzc2ljqups.css +3 -0
- package/dist/static/chunks/2cwj6u4m-2xhv.js +4 -0
- package/dist/{standalone/dist/static/chunks/turbopack-2d7f32bwbsmp8.js → static/chunks/turbopack-38l7qwik-h828.js} +1 -1
- package/dist/trace +1 -1
- package/dist/trace-build +1 -1
- package/package.json +8 -1
- package/dist/build/chunks/node_modules_20v-8wl._.js.map +0 -47
- package/dist/server/chunks/[root-of-the-server]__0vtkqkv._.js +0 -11
- package/dist/server/chunks/[root-of-the-server]__0vtkqkv._.js.map +0 -1
- package/dist/server/chunks/ssr/[root-of-the-server]__1fno3kn._.js.map +0 -1
- package/dist/server/chunks/ssr/[root-of-the-server]__1vhgpuw._.js.map +0 -1
- package/dist/server/chunks/ssr/node_modules_next_dist_18tu5cb._.js.map +0 -1
- package/dist/standalone/dist/server/chunks/[root-of-the-server]__0vtkqkv._.js +0 -11
- package/dist/standalone/dist/static/chunks/0ie0zj6s4jns8.js +0 -5
- package/dist/standalone/dist/static/chunks/1zm_64y3b_d7d.js +0 -4
- package/dist/standalone/dist/static/chunks/2ovwin8y5r_vj.css +0 -3
- package/dist/standalone/dist/static/chunks/3l2cn98nr6ga3.js +0 -31
- package/dist/static/chunks/0ie0zj6s4jns8.js +0 -5
- package/dist/static/chunks/1zm_64y3b_d7d.js +0 -4
- package/dist/static/chunks/2ovwin8y5r_vj.css +0 -3
- package/dist/static/chunks/3l2cn98nr6ga3.js +0 -31
- /package/dist/standalone/dist/static/{CLxrQ2qwRm8rvSc-vd6MQ → gwQzOw5VFPX9p238BrwNq}/_buildManifest.js +0 -0
- /package/dist/standalone/dist/static/{CLxrQ2qwRm8rvSc-vd6MQ → gwQzOw5VFPX9p238BrwNq}/_clientMiddlewareManifest.js +0 -0
- /package/dist/standalone/dist/static/{CLxrQ2qwRm8rvSc-vd6MQ → gwQzOw5VFPX9p238BrwNq}/_ssgManifest.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/classes/comparator.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/classes/range.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/classes/semver.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/cmp.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/coerce.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/compare.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/eq.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/gt.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/gte.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/lt.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/lte.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/neq.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/parse.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/satisfies.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/constants.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/debug.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/identifiers.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/lrucache.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/parse-options.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/re.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/package.json +0 -0
- /package/dist/static/{CLxrQ2qwRm8rvSc-vd6MQ → gwQzOw5VFPX9p238BrwNq}/_buildManifest.js +0 -0
- /package/dist/static/{CLxrQ2qwRm8rvSc-vd6MQ → gwQzOw5VFPX9p238BrwNq}/_clientMiddlewareManifest.js +0 -0
- /package/dist/static/{CLxrQ2qwRm8rvSc-vd6MQ → gwQzOw5VFPX9p238BrwNq}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
35
|
+
var t = {};
|
|
36
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
37
|
+
t[p] = s[p];
|
|
38
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
39
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
40
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
41
|
+
t[p[i]] = s[p[i]];
|
|
42
|
+
}
|
|
43
|
+
return t;
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.DEFAULT_EXTENSIONS = exports.Compiler = exports.version = exports.experimental_newMangleNameCache = void 0;
|
|
47
|
+
exports.plugins = plugins;
|
|
48
|
+
exports.experimental_analyze = experimental_analyze;
|
|
49
|
+
exports.parse = parse;
|
|
50
|
+
exports.parseSync = parseSync;
|
|
51
|
+
exports.parseFile = parseFile;
|
|
52
|
+
exports.parseFileSync = parseFileSync;
|
|
53
|
+
exports.print = print;
|
|
54
|
+
exports.printSync = printSync;
|
|
55
|
+
exports.transform = transform;
|
|
56
|
+
exports.transformSync = transformSync;
|
|
57
|
+
exports.transformFile = transformFile;
|
|
58
|
+
exports.transformFileSync = transformFileSync;
|
|
59
|
+
exports.bundle = bundle;
|
|
60
|
+
exports.minify = minify;
|
|
61
|
+
exports.minifySync = minifySync;
|
|
62
|
+
exports.__experimental_registerGlobalTraceConfig = __experimental_registerGlobalTraceConfig;
|
|
63
|
+
exports.getBinaryMetadata = getBinaryMetadata;
|
|
64
|
+
const path_1 = require("path");
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
var binding_1 = require("./binding");
|
|
67
|
+
Object.defineProperty(exports, "experimental_newMangleNameCache", { enumerable: true, get: function () { return binding_1.newMangleNameCache; } });
|
|
68
|
+
const spack_1 = require("./spack");
|
|
69
|
+
const assert = __importStar(require("assert"));
|
|
70
|
+
// Allow overrides to the location of the .node binding file
|
|
71
|
+
const bindingsOverride = process.env["SWC_BINARY_PATH"];
|
|
72
|
+
// `@swc/core` includes d.ts for the `@swc/wasm` to provide typed fallback bindings
|
|
73
|
+
// todo: fix package.json scripts
|
|
74
|
+
let fallbackBindings;
|
|
75
|
+
const bindings = (() => {
|
|
76
|
+
let binding;
|
|
77
|
+
try {
|
|
78
|
+
binding = !!bindingsOverride
|
|
79
|
+
? require((0, path_1.resolve)(bindingsOverride))
|
|
80
|
+
: require("./binding.js");
|
|
81
|
+
// If native binding loaded successfully, it should return proper target triple constant.
|
|
82
|
+
const triple = binding.getTargetTriple();
|
|
83
|
+
assert.ok(triple, "Failed to read target triple from native binary.");
|
|
84
|
+
return binding;
|
|
85
|
+
}
|
|
86
|
+
catch (_) {
|
|
87
|
+
// postinstall supposed to install `@swc/wasm` already
|
|
88
|
+
fallbackBindings = require("@swc/wasm");
|
|
89
|
+
}
|
|
90
|
+
finally {
|
|
91
|
+
return binding;
|
|
92
|
+
}
|
|
93
|
+
})();
|
|
94
|
+
const programSourceContextKey = Symbol("@swc/core.programSourceContext");
|
|
95
|
+
function attachProgramSourceContext(program, sourceContext) {
|
|
96
|
+
if (!sourceContext || typeof program !== "object" || program === null) {
|
|
97
|
+
return program;
|
|
98
|
+
}
|
|
99
|
+
try {
|
|
100
|
+
Object.defineProperty(program, programSourceContextKey, {
|
|
101
|
+
configurable: true,
|
|
102
|
+
enumerable: false,
|
|
103
|
+
value: sourceContext,
|
|
104
|
+
writable: true,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
catch (_) {
|
|
108
|
+
// Frozen user-created ASTs keep the legacy raw Program behavior.
|
|
109
|
+
}
|
|
110
|
+
return program;
|
|
111
|
+
}
|
|
112
|
+
function getProgramSourceContext(program) {
|
|
113
|
+
return program[programSourceContextKey];
|
|
114
|
+
}
|
|
115
|
+
function copyProgramSourceContext(from, to) {
|
|
116
|
+
return attachProgramSourceContext(to, getProgramSourceContext(from));
|
|
117
|
+
}
|
|
118
|
+
function parseProgramJson(json) {
|
|
119
|
+
const value = JSON.parse(json);
|
|
120
|
+
if (value &&
|
|
121
|
+
typeof value === "object" &&
|
|
122
|
+
"program" in value &&
|
|
123
|
+
value.program) {
|
|
124
|
+
return attachProgramSourceContext(value.program, value.sourceContext);
|
|
125
|
+
}
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
function stringifyProgram(program) {
|
|
129
|
+
const sourceContext = getProgramSourceContext(program);
|
|
130
|
+
if (sourceContext) {
|
|
131
|
+
return JSON.stringify({
|
|
132
|
+
program,
|
|
133
|
+
sourceContext,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return JSON.stringify(program);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Version of the swc binding.
|
|
140
|
+
*/
|
|
141
|
+
exports.version = require("./package.json").version;
|
|
142
|
+
/**
|
|
143
|
+
* @deprecated JavaScript API is deprecated. Please use Wasm plugin instead.
|
|
144
|
+
*/
|
|
145
|
+
function plugins(ps) {
|
|
146
|
+
return (mod) => {
|
|
147
|
+
let m = mod;
|
|
148
|
+
for (const p of ps) {
|
|
149
|
+
m = p(m);
|
|
150
|
+
}
|
|
151
|
+
return m;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
class Compiler {
|
|
155
|
+
constructor() {
|
|
156
|
+
this.fallbackBindingsPluginWarningDisplayed = false;
|
|
157
|
+
}
|
|
158
|
+
minify(src, opts, extras) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
if (bindings) {
|
|
161
|
+
return bindings.minify(Buffer.from(!Buffer.isBuffer(src) && typeof src === 'object' ? JSON.stringify(src) : src), toBuffer(opts !== null && opts !== void 0 ? opts : {}), !Buffer.isBuffer(src) && typeof src === 'object', extras !== null && extras !== void 0 ? extras : {});
|
|
162
|
+
}
|
|
163
|
+
else if (fallbackBindings) {
|
|
164
|
+
return fallbackBindings.minify(src, opts);
|
|
165
|
+
}
|
|
166
|
+
throw new Error("Bindings not found.");
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
minifySync(src, opts, extras) {
|
|
170
|
+
if (bindings) {
|
|
171
|
+
return bindings.minifySync(Buffer.from(!Buffer.isBuffer(src) && typeof src === 'object' ? JSON.stringify(src) : src), toBuffer(opts !== null && opts !== void 0 ? opts : {}), !Buffer.isBuffer(src) && typeof src === 'object', extras !== null && extras !== void 0 ? extras : {});
|
|
172
|
+
}
|
|
173
|
+
else if (fallbackBindings) {
|
|
174
|
+
return fallbackBindings.minifySync(src, opts);
|
|
175
|
+
}
|
|
176
|
+
throw new Error("Bindings not found.");
|
|
177
|
+
}
|
|
178
|
+
parse(src, options, filename) {
|
|
179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
+
options = options || { syntax: "ecmascript" };
|
|
181
|
+
options.syntax = options.syntax || "ecmascript";
|
|
182
|
+
if (!bindings && !!fallbackBindings) {
|
|
183
|
+
throw new Error("Fallback bindings does not support this interface yet.");
|
|
184
|
+
}
|
|
185
|
+
else if (!bindings) {
|
|
186
|
+
throw new Error("Bindings not found.");
|
|
187
|
+
}
|
|
188
|
+
if (bindings) {
|
|
189
|
+
const res = yield bindings.parse(src, toBuffer(options), filename);
|
|
190
|
+
return parseProgramJson(res);
|
|
191
|
+
}
|
|
192
|
+
else if (fallbackBindings) {
|
|
193
|
+
return fallbackBindings.parse(src, options);
|
|
194
|
+
}
|
|
195
|
+
throw new Error("Bindings not found.");
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
parseSync(src, options, filename) {
|
|
199
|
+
options = options || { syntax: "ecmascript" };
|
|
200
|
+
options.syntax = options.syntax || "ecmascript";
|
|
201
|
+
if (bindings) {
|
|
202
|
+
return parseProgramJson(bindings.parseSync(src, toBuffer(options), filename));
|
|
203
|
+
}
|
|
204
|
+
else if (fallbackBindings) {
|
|
205
|
+
return fallbackBindings.parseSync(src, options);
|
|
206
|
+
}
|
|
207
|
+
throw new Error("Bindings not found.");
|
|
208
|
+
}
|
|
209
|
+
parseFile(path, options) {
|
|
210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
options = options || { syntax: "ecmascript" };
|
|
212
|
+
options.syntax = options.syntax || "ecmascript";
|
|
213
|
+
if (!bindings && !!fallbackBindings) {
|
|
214
|
+
throw new Error("Fallback bindings does not support filesystem access.");
|
|
215
|
+
}
|
|
216
|
+
else if (!bindings) {
|
|
217
|
+
throw new Error("Bindings not found.");
|
|
218
|
+
}
|
|
219
|
+
const res = yield bindings.parseFile(path, toBuffer(options));
|
|
220
|
+
return parseProgramJson(res);
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
parseFileSync(path, options) {
|
|
224
|
+
options = options || { syntax: "ecmascript" };
|
|
225
|
+
options.syntax = options.syntax || "ecmascript";
|
|
226
|
+
if (!bindings && !!fallbackBindings) {
|
|
227
|
+
throw new Error("Fallback bindings does not support filesystem access");
|
|
228
|
+
}
|
|
229
|
+
else if (!bindings) {
|
|
230
|
+
throw new Error("Bindings not found.");
|
|
231
|
+
}
|
|
232
|
+
return parseProgramJson(bindings.parseFileSync(path, toBuffer(options)));
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Note: this method should be invoked on the compiler instance used
|
|
236
|
+
* for `parse()` / `parseSync()`.
|
|
237
|
+
*/
|
|
238
|
+
print(m, options) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
240
|
+
options = options || {};
|
|
241
|
+
if (bindings) {
|
|
242
|
+
return bindings.print(stringifyProgram(m), toBuffer(options));
|
|
243
|
+
}
|
|
244
|
+
else if (fallbackBindings) {
|
|
245
|
+
return fallbackBindings.print(m, options);
|
|
246
|
+
}
|
|
247
|
+
throw new Error("Bindings not found.");
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Note: this method should be invoked on the compiler instance used
|
|
252
|
+
* for `parse()` / `parseSync()`.
|
|
253
|
+
*/
|
|
254
|
+
printSync(m, options) {
|
|
255
|
+
options = options || {};
|
|
256
|
+
if (bindings) {
|
|
257
|
+
return bindings.printSync(stringifyProgram(m), toBuffer(options));
|
|
258
|
+
}
|
|
259
|
+
else if (fallbackBindings) {
|
|
260
|
+
return fallbackBindings.printSync(m, options);
|
|
261
|
+
}
|
|
262
|
+
throw new Error("Bindings not found.");
|
|
263
|
+
}
|
|
264
|
+
transform(src, options) {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
var _a, _b, _c;
|
|
267
|
+
const isModule = typeof src !== "string";
|
|
268
|
+
options = options || {};
|
|
269
|
+
if ((_a = options === null || options === void 0 ? void 0 : options.jsc) === null || _a === void 0 ? void 0 : _a.parser) {
|
|
270
|
+
options.jsc.parser.syntax =
|
|
271
|
+
(_b = options.jsc.parser.syntax) !== null && _b !== void 0 ? _b : "ecmascript";
|
|
272
|
+
}
|
|
273
|
+
const { plugin } = options, newOptions = __rest(options, ["plugin"]);
|
|
274
|
+
if (bindings) {
|
|
275
|
+
if (plugin) {
|
|
276
|
+
const m = typeof src === "string"
|
|
277
|
+
? yield this.parse(src, (_c = options === null || options === void 0 ? void 0 : options.jsc) === null || _c === void 0 ? void 0 : _c.parser, options.filename)
|
|
278
|
+
: src;
|
|
279
|
+
return this.transform(copyProgramSourceContext(m, plugin(m)), newOptions);
|
|
280
|
+
}
|
|
281
|
+
return bindings.transform(isModule ? stringifyProgram(src) : src, isModule, toBuffer(newOptions));
|
|
282
|
+
}
|
|
283
|
+
else if (fallbackBindings) {
|
|
284
|
+
if (plugin && !this.fallbackBindingsPluginWarningDisplayed) {
|
|
285
|
+
console.warn(`Fallback bindings does not support legacy plugins, it'll be ignored.`);
|
|
286
|
+
this.fallbackBindingsPluginWarningDisplayed = true;
|
|
287
|
+
}
|
|
288
|
+
return fallbackBindings.transform(src, options);
|
|
289
|
+
}
|
|
290
|
+
throw new Error("Bindings not found.");
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
transformSync(src, options) {
|
|
294
|
+
var _a, _b, _c;
|
|
295
|
+
const isModule = typeof src !== "string";
|
|
296
|
+
options = options || {};
|
|
297
|
+
if ((_a = options === null || options === void 0 ? void 0 : options.jsc) === null || _a === void 0 ? void 0 : _a.parser) {
|
|
298
|
+
options.jsc.parser.syntax =
|
|
299
|
+
(_b = options.jsc.parser.syntax) !== null && _b !== void 0 ? _b : "ecmascript";
|
|
300
|
+
}
|
|
301
|
+
const { plugin } = options, newOptions = __rest(options, ["plugin"]);
|
|
302
|
+
if (bindings) {
|
|
303
|
+
if (plugin) {
|
|
304
|
+
const m = typeof src === "string"
|
|
305
|
+
? this.parseSync(src, (_c = options === null || options === void 0 ? void 0 : options.jsc) === null || _c === void 0 ? void 0 : _c.parser, options.filename)
|
|
306
|
+
: src;
|
|
307
|
+
return this.transformSync(copyProgramSourceContext(m, plugin(m)), newOptions);
|
|
308
|
+
}
|
|
309
|
+
return bindings.transformSync(isModule ? stringifyProgram(src) : src, isModule, toBuffer(newOptions));
|
|
310
|
+
}
|
|
311
|
+
else if (fallbackBindings) {
|
|
312
|
+
if (plugin && !this.fallbackBindingsPluginWarningDisplayed) {
|
|
313
|
+
console.warn(`Fallback bindings does not support legacy plugins, it'll be ignored.`);
|
|
314
|
+
this.fallbackBindingsPluginWarningDisplayed = true;
|
|
315
|
+
}
|
|
316
|
+
return fallbackBindings.transformSync(isModule ? JSON.stringify(src) : src, options);
|
|
317
|
+
}
|
|
318
|
+
throw new Error("Bindings not found");
|
|
319
|
+
}
|
|
320
|
+
transformFile(path, options) {
|
|
321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
322
|
+
var _a, _b, _c;
|
|
323
|
+
if (!bindings && !!fallbackBindings) {
|
|
324
|
+
throw new Error("Fallback bindings does not support filesystem access.");
|
|
325
|
+
}
|
|
326
|
+
else if (!bindings) {
|
|
327
|
+
throw new Error("Bindings not found.");
|
|
328
|
+
}
|
|
329
|
+
options = options || {};
|
|
330
|
+
if ((_a = options === null || options === void 0 ? void 0 : options.jsc) === null || _a === void 0 ? void 0 : _a.parser) {
|
|
331
|
+
options.jsc.parser.syntax =
|
|
332
|
+
(_b = options.jsc.parser.syntax) !== null && _b !== void 0 ? _b : "ecmascript";
|
|
333
|
+
}
|
|
334
|
+
const { plugin } = options, newOptions = __rest(options, ["plugin"]);
|
|
335
|
+
newOptions.filename = path;
|
|
336
|
+
if (plugin) {
|
|
337
|
+
const m = yield this.parseFile(path, (_c = options === null || options === void 0 ? void 0 : options.jsc) === null || _c === void 0 ? void 0 : _c.parser);
|
|
338
|
+
return this.transform(copyProgramSourceContext(m, plugin(m)), newOptions);
|
|
339
|
+
}
|
|
340
|
+
return bindings.transformFile(path, false, toBuffer(newOptions));
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
transformFileSync(path, options) {
|
|
344
|
+
var _a, _b, _c;
|
|
345
|
+
if (!bindings && !!fallbackBindings) {
|
|
346
|
+
throw new Error("Fallback bindings does not support filesystem access.");
|
|
347
|
+
}
|
|
348
|
+
else if (!bindings) {
|
|
349
|
+
throw new Error("Bindings not found.");
|
|
350
|
+
}
|
|
351
|
+
options = options || {};
|
|
352
|
+
if ((_a = options === null || options === void 0 ? void 0 : options.jsc) === null || _a === void 0 ? void 0 : _a.parser) {
|
|
353
|
+
options.jsc.parser.syntax =
|
|
354
|
+
(_b = options.jsc.parser.syntax) !== null && _b !== void 0 ? _b : "ecmascript";
|
|
355
|
+
}
|
|
356
|
+
const { plugin } = options, newOptions = __rest(options, ["plugin"]);
|
|
357
|
+
newOptions.filename = path;
|
|
358
|
+
if (plugin) {
|
|
359
|
+
const m = this.parseFileSync(path, (_c = options === null || options === void 0 ? void 0 : options.jsc) === null || _c === void 0 ? void 0 : _c.parser);
|
|
360
|
+
return this.transformSync(copyProgramSourceContext(m, plugin(m)), newOptions);
|
|
361
|
+
}
|
|
362
|
+
return bindings.transformFileSync(path,
|
|
363
|
+
/* isModule */ false, toBuffer(newOptions));
|
|
364
|
+
}
|
|
365
|
+
bundle(options) {
|
|
366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
367
|
+
if (!bindings && !!fallbackBindings) {
|
|
368
|
+
throw new Error("Fallback bindings does not support this interface yet.");
|
|
369
|
+
}
|
|
370
|
+
else if (!bindings) {
|
|
371
|
+
throw new Error("Bindings not found.");
|
|
372
|
+
}
|
|
373
|
+
const opts = yield (0, spack_1.compileBundleOptions)(options);
|
|
374
|
+
if (Array.isArray(opts)) {
|
|
375
|
+
const all = yield Promise.all(opts.map((opt) => __awaiter(this, void 0, void 0, function* () {
|
|
376
|
+
return this.bundle(opt);
|
|
377
|
+
})));
|
|
378
|
+
let obj = {};
|
|
379
|
+
for (const o of all) {
|
|
380
|
+
obj = Object.assign(Object.assign({}, obj), o);
|
|
381
|
+
}
|
|
382
|
+
return obj;
|
|
383
|
+
}
|
|
384
|
+
return bindings.bundle(toBuffer(Object.assign({}, opts)));
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
exports.Compiler = Compiler;
|
|
389
|
+
const compiler = new Compiler();
|
|
390
|
+
function experimental_analyze(src, options) {
|
|
391
|
+
return bindings.analyze(src, toBuffer(options));
|
|
392
|
+
}
|
|
393
|
+
function parse(src, options) {
|
|
394
|
+
return compiler.parse(src, options);
|
|
395
|
+
}
|
|
396
|
+
function parseSync(src, options) {
|
|
397
|
+
return compiler.parseSync(src, options);
|
|
398
|
+
}
|
|
399
|
+
function parseFile(path, options) {
|
|
400
|
+
return compiler.parseFile(path, options);
|
|
401
|
+
}
|
|
402
|
+
function parseFileSync(path, options) {
|
|
403
|
+
return compiler.parseFileSync(path, options);
|
|
404
|
+
}
|
|
405
|
+
function print(m, options) {
|
|
406
|
+
return compiler.print(m, options);
|
|
407
|
+
}
|
|
408
|
+
function printSync(m, options) {
|
|
409
|
+
return compiler.printSync(m, options);
|
|
410
|
+
}
|
|
411
|
+
function transform(src, options) {
|
|
412
|
+
return compiler.transform(src, options);
|
|
413
|
+
}
|
|
414
|
+
function transformSync(src, options) {
|
|
415
|
+
return compiler.transformSync(src, options);
|
|
416
|
+
}
|
|
417
|
+
function transformFile(path, options) {
|
|
418
|
+
return compiler.transformFile(path, options);
|
|
419
|
+
}
|
|
420
|
+
function transformFileSync(path, options) {
|
|
421
|
+
return compiler.transformFileSync(path, options);
|
|
422
|
+
}
|
|
423
|
+
function bundle(options) {
|
|
424
|
+
return compiler.bundle(options);
|
|
425
|
+
}
|
|
426
|
+
function minify(src, opts, extras) {
|
|
427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
428
|
+
return compiler.minify(src, opts, extras);
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
function minifySync(src, opts, extras) {
|
|
432
|
+
return compiler.minifySync(src, opts, extras);
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* @deprecated Trace profiling is disabled. This function is kept as a no-op for compatibility.
|
|
436
|
+
*/
|
|
437
|
+
function __experimental_registerGlobalTraceConfig(traceConfig) {
|
|
438
|
+
void traceConfig;
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* @ignore
|
|
442
|
+
*
|
|
443
|
+
* Returns current binary's metadata to determine which binary is actually loaded.
|
|
444
|
+
*
|
|
445
|
+
* This is undocumented interface, does not guarantee stability across `@swc/core`'s semver
|
|
446
|
+
* as internal representation may change anytime. Use it with caution.
|
|
447
|
+
*/
|
|
448
|
+
function getBinaryMetadata() {
|
|
449
|
+
return {
|
|
450
|
+
target: bindings ? bindings === null || bindings === void 0 ? void 0 : bindings.getTargetTriple() : undefined,
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
exports.DEFAULT_EXTENSIONS = Object.freeze([
|
|
454
|
+
".js",
|
|
455
|
+
".jsx",
|
|
456
|
+
".es6",
|
|
457
|
+
".es",
|
|
458
|
+
".mjs",
|
|
459
|
+
".ts",
|
|
460
|
+
".tsx",
|
|
461
|
+
".cts",
|
|
462
|
+
".mts",
|
|
463
|
+
]);
|
|
464
|
+
function toBuffer(t) {
|
|
465
|
+
return Buffer.from(JSON.stringify(t));
|
|
466
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@swc/core",
|
|
3
|
+
"version": "1.15.46",
|
|
4
|
+
"description": "Super-fast alternative for babel",
|
|
5
|
+
"homepage": "https://swc.rs",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"author": "강동윤 <kdy1997.dev@gmail.com>",
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"swc",
|
|
11
|
+
"swcpack",
|
|
12
|
+
"babel",
|
|
13
|
+
"typescript",
|
|
14
|
+
"rust",
|
|
15
|
+
"webpack",
|
|
16
|
+
"tsc"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=10"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/swc-project/swc.git",
|
|
24
|
+
"directory": "packages/core"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/swc-project/swc/issues"
|
|
28
|
+
},
|
|
29
|
+
"napi": {
|
|
30
|
+
"binaryName": "swc",
|
|
31
|
+
"targets": [
|
|
32
|
+
"x86_64-apple-darwin",
|
|
33
|
+
"x86_64-pc-windows-msvc",
|
|
34
|
+
"x86_64-unknown-linux-gnu",
|
|
35
|
+
"powerpc64le-unknown-linux-gnu",
|
|
36
|
+
"s390x-unknown-linux-gnu",
|
|
37
|
+
"x86_64-unknown-linux-musl",
|
|
38
|
+
"i686-pc-windows-msvc",
|
|
39
|
+
"armv7-unknown-linux-gnueabihf",
|
|
40
|
+
"aarch64-apple-darwin",
|
|
41
|
+
"aarch64-unknown-linux-gnu",
|
|
42
|
+
"aarch64-unknown-linux-musl",
|
|
43
|
+
"aarch64-pc-windows-msvc"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"registry": "https://registry.npmjs.org/",
|
|
48
|
+
"access": "public",
|
|
49
|
+
"provenance": true
|
|
50
|
+
},
|
|
51
|
+
"types": "./index.d.ts",
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@swc/helpers": ">=0.5.17"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"@swc/helpers": {
|
|
57
|
+
"optional": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"funding": {
|
|
61
|
+
"type": "opencollective",
|
|
62
|
+
"url": "https://opencollective.com/swc"
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"CHANGELOG.md",
|
|
66
|
+
"Visitor.d.ts",
|
|
67
|
+
"index.d.ts",
|
|
68
|
+
"spack.js",
|
|
69
|
+
"util.d.ts",
|
|
70
|
+
"LICENSE",
|
|
71
|
+
"Visitor.js",
|
|
72
|
+
"binding.d.ts",
|
|
73
|
+
"index.js",
|
|
74
|
+
"types.d.ts",
|
|
75
|
+
"util.js",
|
|
76
|
+
"README.md",
|
|
77
|
+
"binding.js",
|
|
78
|
+
"package.json",
|
|
79
|
+
"spack.d.ts",
|
|
80
|
+
"types.js",
|
|
81
|
+
"postinstall.js",
|
|
82
|
+
"bindings/binding_core_wasm/pkg/binding_core_wasm.d.ts"
|
|
83
|
+
],
|
|
84
|
+
"dependencies": {
|
|
85
|
+
"@swc/counter": "^0.1.3",
|
|
86
|
+
"@swc/types": "^0.1.27"
|
|
87
|
+
},
|
|
88
|
+
"devDependencies": {
|
|
89
|
+
"@napi-rs/cli": "^3.2.0",
|
|
90
|
+
"@rstest/core": "^0.7.8",
|
|
91
|
+
"cross-env": "^7.0.3",
|
|
92
|
+
"typescript": "^5.3.3"
|
|
93
|
+
},
|
|
94
|
+
"optionalDependencies": {
|
|
95
|
+
"@swc/core-darwin-x64": "1.15.46",
|
|
96
|
+
"@swc/core-win32-x64-msvc": "1.15.46",
|
|
97
|
+
"@swc/core-linux-x64-gnu": "1.15.46",
|
|
98
|
+
"@swc/core-linux-ppc64-gnu": "1.15.46",
|
|
99
|
+
"@swc/core-linux-s390x-gnu": "1.15.46",
|
|
100
|
+
"@swc/core-linux-x64-musl": "1.15.46",
|
|
101
|
+
"@swc/core-win32-ia32-msvc": "1.15.46",
|
|
102
|
+
"@swc/core-linux-arm-gnueabihf": "1.15.46",
|
|
103
|
+
"@swc/core-darwin-arm64": "1.15.46",
|
|
104
|
+
"@swc/core-linux-arm64-gnu": "1.15.46",
|
|
105
|
+
"@swc/core-linux-arm64-musl": "1.15.46",
|
|
106
|
+
"@swc/core-win32-arm64-msvc": "1.15.46"
|
|
107
|
+
},
|
|
108
|
+
"scripts": {
|
|
109
|
+
"postinstall": "node postinstall.js",
|
|
110
|
+
"artifacts": "napi artifacts --npm-dir scripts/npm",
|
|
111
|
+
"pack": "wasm-pack",
|
|
112
|
+
"build:ts": "tsc -d",
|
|
113
|
+
"build:wasm": "npm-run-all \"pack -- build ../../bindings/binding_core_wasm --scope swc {1} -t {2} --features plugin\" --",
|
|
114
|
+
"build": "tsc -d && napi build --manifest-path ../../Cargo.toml --platform -p binding_core_node --js ./binding.js --dts ./binding.d.ts --release -o .",
|
|
115
|
+
"build:dev": "tsc -d && napi build --manifest-path ../../Cargo.toml --platform -p binding_core_node --js ./binding.js --dts ./binding.d.ts -o .",
|
|
116
|
+
"test": "rstest",
|
|
117
|
+
"version": "napi version --npm-dir scripts/npm"
|
|
118
|
+
}
|
|
119
|
+
}
|