mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 18:47:44 +00:00
build: migrate to pnpm (#772)
This commit is contained in:
@@ -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?$': [
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
@@ -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/*"]
|
||||
|
||||
Reference in New Issue
Block a user