mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 21:58:39 -09:00
Remove pnp
This commit is contained in:
parent
359f2b7600
commit
11e61dec9b
1 changed files with 1 additions and 2 deletions
3
bin/mk-snapshot.js
vendored
3
bin/mk-snapshot.js
vendored
|
|
@ -4,7 +4,6 @@ const path = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const electronLink = require('electron-link');
|
const electronLink = require('electron-link');
|
||||||
const {mkdirp} = require('fs-extra');
|
const {mkdirp} = require('fs-extra');
|
||||||
const pnp = require("pnpapi");
|
|
||||||
|
|
||||||
const excludedModules = {};
|
const excludedModules = {};
|
||||||
|
|
||||||
|
|
@ -42,7 +41,7 @@ async function main() {
|
||||||
const outputBlobPath = `${baseDirPath}/cache/${npmConfigArch}`;
|
const outputBlobPath = `${baseDirPath}/cache/${npmConfigArch}`;
|
||||||
await mkdirp(outputBlobPath);
|
await mkdirp(outputBlobPath);
|
||||||
|
|
||||||
const baseDir = pnp.resolveToUnqualified("electron-mksnapshot", __filename);
|
const baseDir = require.resolve("electron-mksnapshot");
|
||||||
const mksnapshotBinPath = path.resolve(baseDir, "bin", "mksnapshot" + (process.platform === "win32" ? ".exe" : ""));
|
const mksnapshotBinPath = path.resolve(baseDir, "bin", "mksnapshot" + (process.platform === "win32" ? ".exe" : ""));
|
||||||
|
|
||||||
if (process.platform !== 'darwin') {
|
if (process.platform !== 'darwin') {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue