@okamjs/okam
Advanced tools
Comparing version 0.0.34 to 0.0.35-dev.20231110.1
@@ -14,2 +14,3 @@ /* tslint:disable */ | ||
meta?: boolean; | ||
asciiOnly?: boolean, | ||
preserveModules?: boolean; | ||
@@ -27,2 +28,3 @@ preserveModulesRoot?: string; | ||
}; | ||
minify?: boolean; | ||
mode?: "development" | "production"; | ||
@@ -35,3 +37,4 @@ define?: Record<string, string>; | ||
root: string; | ||
subpath: { | ||
script?: string; | ||
subpath?: { | ||
exclude?: string[]; | ||
@@ -38,0 +41,0 @@ rules: { |
{ | ||
"name": "@okamjs/okam", | ||
"version": "0.0.34", | ||
"version": "0.0.35-dev.20231110.1", | ||
"main": "index.js", | ||
@@ -24,7 +24,2 @@ "types": "index.d.ts", | ||
}, | ||
"optionalDependencies": { | ||
"@okamjs/okam-darwin-arm64": "0.0.34", | ||
"@okamjs/okam-darwin-x64": "0.0.34", | ||
"@okamjs/okam-linux-x64-gnu": "0.0.34" | ||
}, | ||
"scripts": { | ||
@@ -38,2 +33,3 @@ "artifacts": "napi artifacts", | ||
"build:debug": "napi build --platform", | ||
"prepublishOnly": "napi prepublish -t npm", | ||
"test": "ava", | ||
@@ -43,3 +39,8 @@ "universal": "napi universal", | ||
"release": "esno scripts/release.ts" | ||
}, | ||
"optionalDependencies": { | ||
"@okamjs/okam-darwin-arm64": "0.0.35-dev.20231110.1", | ||
"@okamjs/okam-darwin-x64": "0.0.35-dev.20231110.1", | ||
"@okamjs/okam-linux-x64-gnu": "0.0.35-dev.20231110.1" | ||
} | ||
} |
@@ -57,11 +57,19 @@ import 'zx/globals'; | ||
fs.writeFileSync(nodePkgPath, JSON.stringify(nodePkg, null, 2) + '\n'); | ||
// build macOs *.node | ||
await $`rm -rf ./*.node`; | ||
await $`find ./ -name '*.node' | xargs rm -f`; | ||
await $`find ./npm -name '*.node' | xargs rm -f`; | ||
await $`cargo build --lib -r --target x86_64-apple-darwin`; | ||
await $`pnpm run build:mac:x86`; | ||
await $`cargo build --lib -r --target aarch64-apple-darwin`; | ||
await $`pnpm run build:mac:aarch`; | ||
await $`strip -x ./okam.darwin-*.node`; | ||
console.log('linux building started...'); | ||
const start = Date.now(); | ||
await build_linux_binding(); | ||
const duration = (Date.now() - start) / 1000; | ||
console.log(`linux building done ${duration}`); | ||
@@ -126,4 +134,4 @@ await $`pnpm run artifacts:local`; | ||
const containerCMD = [ | ||
'cargo build -r', | ||
'pnpm --filter @okamjs/okam build', | ||
'cargo build -r --target x86_64-unknown-linux-gnu', | ||
'pnpm --filter @okamjs/okam build:linux:x86', | ||
'strip ./crates/node/okam.linux*.node', | ||
@@ -152,4 +160,3 @@ ].join('&&'); | ||
// too many <jemalloc> log, so we use quiet | ||
await $`docker run ${options} ${image} bash -c ${containerCMD}`.quiet(); | ||
await $`docker run ${options} ${image} bash -c ${containerCMD}`; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
452
15229
5