build: migrate to pnpm (#772)

This commit is contained in:
Trim21
2024-08-10 04:36:38 +08:00
committed by GitHub
parent a078cfe2b0
commit 61ea0b445a
21 changed files with 14256 additions and 20130 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
transformIgnorePatterns: ['node_modules/(?!(p-queue|p-timeout)/)'],
transformIgnorePatterns: ['node_modules/.pnpm/(?!(p-queue|p-timeout).*/)'],
transform: {
// transform ESM only package to CommonJS
'^.+\\.(t|j)sx?$': [
+2 -2
View File
@@ -27,7 +27,7 @@ export const methodCallXML = (options: net.NetConnectOpts, methodName: string, p
const xmlLength = Buffer.byteLength(xml, 'utf8');
stream.on('error', reject);
stream.setEncoding('UTF8');
stream.setEncoding('utf8');
const headerItems = [
`CONTENT_LENGTH${NULL_CHAR}${xmlLength}${NULL_CHAR}`,
@@ -68,7 +68,7 @@ export const methodCallJSON = (options: net.NetConnectOpts, methodName: string,
const jsonLength = Buffer.byteLength(json, 'utf8');
stream.on('error', reject);
stream.setEncoding('UTF8');
stream.setEncoding('utf8');
const headerItems = [
`CONTENT_LENGTH${NULL_CHAR}${jsonLength}${NULL_CHAR}`,
+2 -1
View File
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2019",
"target": "es2020",
"moduleResolution": "node",
"allowJs": true,
"module": "commonjs",
@@ -9,6 +9,7 @@
"isolatedModules": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"useUnknownInCatchVariables": false,
"baseUrl": "../",
"paths": {
"@shared/*": ["shared/*"]