@okamjs/okam
Advanced tools
Comparing version 0.4.10-dev.20240412.2 to 0.4.10
@@ -6,6 +6,2 @@ /* tslint:disable */ | ||
export interface TransformOutput { | ||
code: string; | ||
map?: string; | ||
} | ||
export interface JsHooks { | ||
@@ -12,0 +8,0 @@ load?: (filePath: string) => Promise<{ content: string; type: 'css' | 'js' }>; |
@@ -5,2 +5,3 @@ import * as binding from '../binding'; | ||
less?: LessLoaderOpts; | ||
forkTSChecker?: boolean; | ||
} | ||
@@ -7,0 +8,0 @@ export declare function build( |
@@ -47,2 +47,3 @@ var __create = Object.create; | ||
var binding = __toESM(require('../binding')); | ||
var import_forkTSChecker = require('./forkTSChecker'); | ||
var import_lessLoader = require('./lessLoader'); | ||
@@ -117,2 +118,7 @@ function blockStdout() { | ||
}; | ||
if (!params.watch) { | ||
params.hooks.generateEnd = () => { | ||
import_lessLoader.lessLoader.terminate(); | ||
}; | ||
} | ||
if (process.env.DUMP_MAKO_CONFIG) { | ||
@@ -128,3 +134,27 @@ const configFile = import_path.default.join( | ||
} | ||
if (process.env.XCODE_PROFILE) { | ||
await new Promise((resolve) => { | ||
const readline = require('readline'); | ||
const rl = readline.createInterface({ | ||
input: process.stdin, | ||
output: process.stdout, | ||
}); | ||
rl.question( | ||
`Xcode profile enabled. Current process ${process.title} (${process.pid}) . Press Enter to continue... | ||
`, | ||
() => { | ||
rl.close(); | ||
resolve(); | ||
}, | ||
); | ||
}); | ||
} | ||
await binding.build(params); | ||
if (params.forkTSChecker) { | ||
const forkTypeChecker = new import_forkTSChecker.ForkTSChecker({ | ||
root: params.root, | ||
watch: params.watch, | ||
}); | ||
forkTypeChecker.runTypeCheckInChildProcess(); | ||
} | ||
} | ||
@@ -131,0 +161,0 @@ // Annotate the CommonJS export names for ESM import in node: |
{ | ||
"name": "@okamjs/okam", | ||
"version": "0.4.10-dev.20240412.2", | ||
"version": "0.4.10", | ||
"main": "dist/index.js", | ||
@@ -23,8 +23,10 @@ "types": "dist/index.d.ts", | ||
"react-error-overlay": "6.0.9", | ||
"react-refresh": "^0.14.0" | ||
"react-refresh": "^0.14.0", | ||
"workerpool": "^9.1.1" | ||
}, | ||
"devDependencies": { | ||
"@napi-rs/cli": "^2.18.0", | ||
"@types/less": "^3.0.6", | ||
"@types/node": "^20.12.5", | ||
"@napi-rs/cli": "^2.18.0" | ||
"typescript": "^5.4.3" | ||
}, | ||
@@ -59,7 +61,7 @@ "engines": { | ||
"optionalDependencies": { | ||
"@okamjs/okam-darwin-arm64": "0.4.10-dev.20240412.2", | ||
"@okamjs/okam-darwin-x64": "0.4.10-dev.20240412.2", | ||
"@okamjs/okam-linux-x64-gnu": "0.4.10-dev.20240412.2" | ||
"@okamjs/okam-darwin-arm64": "0.4.10", | ||
"@okamjs/okam-darwin-x64": "0.4.10", | ||
"@okamjs/okam-linux-x64-gnu": "0.4.10" | ||
}, | ||
"repository": "git@github.com:umijs/mako.git" | ||
} |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
37071
20
1136
9
4
7
2
+ Addedworkerpool@^9.1.1
+ Added@okamjs/okam-darwin-arm64@0.4.10(transitive)
+ Added@okamjs/okam-darwin-x64@0.4.10(transitive)
+ Added@okamjs/okam-linux-x64-gnu@0.4.10(transitive)
+ Addedworkerpool@9.2.0(transitive)
- Removed@okamjs/okam-darwin-arm64@0.4.10-dev.20240412.2(transitive)
- Removed@okamjs/okam-darwin-x64@0.4.10-dev.20240412.2(transitive)
- Removed@okamjs/okam-linux-x64-gnu@0.4.10-dev.20240412.2(transitive)