From 4941008bb348e3adb1139a2a78496cd38d0c3bb0 Mon Sep 17 00:00:00 2001 From: Ansonhkg Date: Mon, 19 Feb 2024 15:38:02 +0000 Subject: [PATCH] remove vanilla js builds --- package.json | 1 - .../access-control-conditions/project.json | 17 --------- packages/auth-browser/project.json | 18 --------- packages/auth-helpers/project.json | 18 --------- packages/bls-sdk/project.json | 17 --------- packages/constants/project.json | 18 --------- packages/contracts-sdk/project.json | 19 +--------- packages/core/project.json | 18 --------- packages/crypto/project.json | 17 --------- packages/ecdsa-sdk/project.json | 17 --------- packages/encryption/project.json | 17 --------- packages/lit-auth-client/project.json | 18 --------- packages/lit-node-client-nodejs/project.json | 18 --------- packages/lit-node-client/project.json | 19 ---------- packages/lit-third-party-libs/project.json | 20 ---------- packages/misc-browser/project.json | 17 --------- packages/misc/project.json | 17 --------- packages/nacl/project.json | 18 --------- packages/pkp-base/project.json | 18 --------- packages/pkp-client/project.json | 18 --------- packages/pkp-cosmos/project.json | 18 --------- packages/pkp-ethers/project.json | 18 --------- packages/pkp-sui/project.json | 18 --------- packages/pkp-walletconnect/project.json | 18 --------- packages/sev-snp-utils-sdk/project.json | 17 --------- packages/types/project.json | 18 --------- packages/uint8arrays/project.json | 17 --------- tools/scripts/build.mjs | 7 ---- tools/scripts/gen-lib.mjs | 37 ------------------- tools/scripts/tools.mjs | 4 -- 30 files changed, 1 insertion(+), 511 deletions(-) diff --git a/package.json b/package.json index 01c819f70e..08d2ca1dcf 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,6 @@ "tools": "yarn node ./tools/scripts/tools.mjs", "graph": "nx graph", "npm:login": "npm login", - "cy:open:html": "yarn tools --test --e2e html", "cy:open:react": "yarn tools --test --e2e react", "dev": "nodemon --watch packages --ext js,ts --exec \"yarn build:packages && yarn tools --yalc --publish\"", "dev:target": "yarn tools --watch --target", diff --git a/packages/access-control-conditions/project.json b/packages/access-control-conditions/project.json index e06212fad5..8bf50ba3de 100644 --- a/packages/access-control-conditions/project.json +++ b/packages/access-control-conditions/project.json @@ -26,23 +26,6 @@ "assets": ["packages/access-control-conditions/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_accessControlConditions", - "outfile": "dist/packages/access-control-conditions-vanilla/access-control-conditions.js", - "entryPoints": ["./packages/access-control-conditions/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/auth-browser/project.json b/packages/auth-browser/project.json index 6ff6fef3de..c542893cf0 100644 --- a/packages/auth-browser/project.json +++ b/packages/auth-browser/project.json @@ -26,24 +26,6 @@ "assets": ["packages/auth-browser/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_authBrowser", - "outfile": "dist/packages/auth-browser-vanilla/auth-browser.js", - "entryPoints": ["./packages/auth-browser/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/auth-helpers/project.json b/packages/auth-helpers/project.json index 5213dd3afa..ea8169fc93 100644 --- a/packages/auth-helpers/project.json +++ b/packages/auth-helpers/project.json @@ -20,24 +20,6 @@ "assets": ["packages/auth-helpers/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_authHelpers", - "outfile": "dist/packages/auth-helpers-vanilla/auth-helpers.js", - "entryPoints": ["./packages/auth-helpers/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/bls-sdk/project.json b/packages/bls-sdk/project.json index 505841242a..7d93698673 100644 --- a/packages/bls-sdk/project.json +++ b/packages/bls-sdk/project.json @@ -20,23 +20,6 @@ "assets": ["packages/bls-sdk/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_blsSdk", - "outfile": "dist/packages/bls-sdk-vanilla/bls-sdk.js", - "entryPoints": ["./packages/bls-sdk/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["coverage/packages/bls-sdk"], diff --git a/packages/constants/project.json b/packages/constants/project.json index 5ea4900382..6585686612 100644 --- a/packages/constants/project.json +++ b/packages/constants/project.json @@ -21,24 +21,6 @@ "assets": ["packages/constants/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "bundle": true, - "sourcemap": true, - "metafile": true, - "globalName": "LitJsSdk_constants", - "outfile": "dist/packages/constants-vanilla/constants.js", - "entryPoints": ["./packages/constants/src/index.ts"], - "define": { "global": "window" }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "copyJSONFilesToDist": { "executor": "nx:run-commands", diff --git a/packages/contracts-sdk/project.json b/packages/contracts-sdk/project.json index 2e25cee576..5dcd4e5647 100644 --- a/packages/contracts-sdk/project.json +++ b/packages/contracts-sdk/project.json @@ -24,24 +24,7 @@ "assets": ["packages/contracts-sdk/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_contractsSdk", - "outfile": "dist/packages/contracts-sdk-vanilla/contracts-sdk.js", - "entryPoints": ["./packages/contracts-sdk/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, + "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/core/project.json b/packages/core/project.json index fd70103aa3..f063ef6131 100644 --- a/packages/core/project.json +++ b/packages/core/project.json @@ -20,24 +20,6 @@ "assets": ["packages/core/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_core", - "outfile": "dist/packages/core-vanilla/core.js", - "entryPoints": ["./packages/core/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/crypto/project.json b/packages/crypto/project.json index 215fc75ae8..d5e29d0221 100644 --- a/packages/crypto/project.json +++ b/packages/crypto/project.json @@ -20,23 +20,6 @@ "assets": ["packages/crypto/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_crypto", - "outfile": "dist/packages/crypto-vanilla/crypto.js", - "entryPoints": ["./packages/crypto/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/ecdsa-sdk/project.json b/packages/ecdsa-sdk/project.json index c92febd1a1..85257d99b8 100644 --- a/packages/ecdsa-sdk/project.json +++ b/packages/ecdsa-sdk/project.json @@ -20,23 +20,6 @@ "assets": ["packages/ecdsa-sdk/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_ecdsaSdk", - "outfile": "dist/packages/ecdsa-sdk-vanilla/ecdsa-sdk.js", - "entryPoints": ["./packages/ecdsa-sdk/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["coverage/packages/ecdsa-sdk"], diff --git a/packages/encryption/project.json b/packages/encryption/project.json index f55ea1990f..40d974c1c0 100644 --- a/packages/encryption/project.json +++ b/packages/encryption/project.json @@ -26,23 +26,6 @@ "assets": ["packages/encryption/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_encryption", - "outfile": "dist/packages/encryption-vanilla/encryption.js", - "entryPoints": ["./packages/encryption/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/lit-auth-client/project.json b/packages/lit-auth-client/project.json index d6445486a3..f61d50d680 100644 --- a/packages/lit-auth-client/project.json +++ b/packages/lit-auth-client/project.json @@ -20,24 +20,6 @@ "assets": ["packages/lit-auth-client/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_litAuthClient", - "outfile": "dist/packages/lit-auth-client-vanilla/lit-auth-client.js", - "entryPoints": ["./packages/lit-auth-client/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/lit-node-client-nodejs/project.json b/packages/lit-node-client-nodejs/project.json index f564e23be1..c558ea2de5 100644 --- a/packages/lit-node-client-nodejs/project.json +++ b/packages/lit-node-client-nodejs/project.json @@ -20,24 +20,6 @@ "assets": ["packages/lit-node-client-nodejs/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_litNodeClientNodejs", - "outfile": "dist/packages/lit-node-client-nodejs-vanilla/lit-node-client-nodejs.js", - "entryPoints": ["./packages/lit-node-client-nodejs/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/lit-node-client/project.json b/packages/lit-node-client/project.json index c9cec8cc19..257d3e3635 100644 --- a/packages/lit-node-client/project.json +++ b/packages/lit-node-client/project.json @@ -24,25 +24,6 @@ "assets": ["packages/lit-node-client/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_litNodeClient", - "outfile": "dist/packages/lit-node-client-vanilla/lit-node-client.js", - "entryPoints": ["./packages/lit-node-client/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window", - "Buffer": "Buffer" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/lit-third-party-libs/project.json b/packages/lit-third-party-libs/project.json index 98d70f770f..b7284b4de1 100644 --- a/packages/lit-third-party-libs/project.json +++ b/packages/lit-third-party-libs/project.json @@ -24,26 +24,6 @@ ] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_litThirdPartyLibs", - "outfile": "dist/packages/lit-third-party-libs-vanilla/lit-third-party-libs.js", - "entryPoints": [ - "./packages/lit-third-party-libs/src/index.ts" - ], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": [ diff --git a/packages/misc-browser/project.json b/packages/misc-browser/project.json index 924e281a89..e2ec9395d9 100644 --- a/packages/misc-browser/project.json +++ b/packages/misc-browser/project.json @@ -20,23 +20,6 @@ "assets": ["packages/misc-browser/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_miscBrowser", - "outfile": "dist/packages/misc-browser-vanilla/misc-browser.js", - "entryPoints": ["./packages/misc-browser/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/misc/project.json b/packages/misc/project.json index 69a58c51c6..d4f93035a6 100644 --- a/packages/misc/project.json +++ b/packages/misc/project.json @@ -20,23 +20,6 @@ "assets": ["packages/misc/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_misc", - "outfile": "dist/packages/misc-vanilla/misc.js", - "entryPoints": ["./packages/misc/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/nacl/project.json b/packages/nacl/project.json index 371bfd67ec..0b257fe115 100644 --- a/packages/nacl/project.json +++ b/packages/nacl/project.json @@ -20,24 +20,6 @@ "assets": ["packages/nacl/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_nacl", - "outfile": "dist/packages/nacl-vanilla/nacl.js", - "entryPoints": ["./packages/nacl/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/pkp-base/project.json b/packages/pkp-base/project.json index 2fe520a047..0511dcc938 100644 --- a/packages/pkp-base/project.json +++ b/packages/pkp-base/project.json @@ -20,24 +20,6 @@ "assets": ["packages/pkp-base/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_pkpBase", - "outfile": "dist/packages/pkp-base-vanilla/pkp-base.js", - "entryPoints": ["./packages/pkp-base/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/pkp-client/project.json b/packages/pkp-client/project.json index a5c863b790..7b47f4bc19 100644 --- a/packages/pkp-client/project.json +++ b/packages/pkp-client/project.json @@ -20,24 +20,6 @@ "assets": ["packages/pkp-client/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_pkpClient", - "outfile": "dist/packages/pkp-client-vanilla/pkp-client.js", - "entryPoints": ["./packages/pkp-client/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/pkp-cosmos/project.json b/packages/pkp-cosmos/project.json index 0797eefd81..82fdf170d5 100644 --- a/packages/pkp-cosmos/project.json +++ b/packages/pkp-cosmos/project.json @@ -20,24 +20,6 @@ "assets": ["packages/pkp-cosmos/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_pkpCosmos", - "outfile": "dist/packages/pkp-cosmos-vanilla/pkp-cosmos.js", - "entryPoints": ["./packages/pkp-cosmos/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/pkp-ethers/project.json b/packages/pkp-ethers/project.json index cf01400cb7..62a5f24e34 100644 --- a/packages/pkp-ethers/project.json +++ b/packages/pkp-ethers/project.json @@ -20,24 +20,6 @@ "assets": ["packages/pkp-ethers/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_pkpEthers", - "outfile": "dist/packages/pkp-ethers-vanilla/pkp-ethers.js", - "entryPoints": ["./packages/pkp-ethers/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/pkp-sui/project.json b/packages/pkp-sui/project.json index 34f894c16b..e9ffe1d4fa 100644 --- a/packages/pkp-sui/project.json +++ b/packages/pkp-sui/project.json @@ -20,24 +20,6 @@ "assets": ["packages/pkp-sui/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_pkpSui", - "outfile": "dist/packages/pkp-sui-vanilla/pkp-sui.js", - "entryPoints": ["./packages/pkp-sui/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/pkp-walletconnect/project.json b/packages/pkp-walletconnect/project.json index 92fb241caf..d40fd16322 100644 --- a/packages/pkp-walletconnect/project.json +++ b/packages/pkp-walletconnect/project.json @@ -20,24 +20,6 @@ "assets": ["packages/pkp-walletconnect/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_pkpWalletconnect", - "outfile": "dist/packages/pkp-walletconnect-vanilla/pkp-walletconnect.js", - "entryPoints": ["./packages/pkp-walletconnect/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/sev-snp-utils-sdk/project.json b/packages/sev-snp-utils-sdk/project.json index 5bebb48823..53401eeab2 100644 --- a/packages/sev-snp-utils-sdk/project.json +++ b/packages/sev-snp-utils-sdk/project.json @@ -20,23 +20,6 @@ "assets": ["packages/sev-snp-utils-sdk/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_blsSdk", - "outfile": "dist/packages/sev-snp-utils-sdk-vanilla/sev-snp-utils-sdk.js", - "entryPoints": ["./packages/sev-snp-utils-sdk/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["coverage/packages/sev-snp-utils-sdk"], diff --git a/packages/types/project.json b/packages/types/project.json index 97814f99fd..39792b7768 100644 --- a/packages/types/project.json +++ b/packages/types/project.json @@ -20,24 +20,6 @@ "assets": ["packages/types/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_types", - "outfile": "dist/packages/types-vanilla/types.js", - "entryPoints": ["./packages/types/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false", - "global": "window" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], diff --git a/packages/uint8arrays/project.json b/packages/uint8arrays/project.json index 29df45cd78..cc99576f84 100644 --- a/packages/uint8arrays/project.json +++ b/packages/uint8arrays/project.json @@ -21,23 +21,6 @@ "assets": ["packages/uint8arrays/*.md"] } }, - "_buildWeb": { - "executor": "@websaam/nx-esbuild:package", - "options": { - "globalName": "LitJsSdk_uint8arrays", - "outfile": "dist/packages/uint8arrays-vanilla/uint8arrays.js", - "entryPoints": ["./packages/uint8arrays/src/index.ts"], - "define": { - "process.env.NODE_DEBUG": "false" - }, - "plugins": [ - { - "package": "esbuild-node-builtins", - "function": "nodeBuiltIns" - } - ] - } - }, "test": { "executor": "@nrwl/jest:jest", "outputs": ["coverage/packages/uint8arrays"], diff --git a/tools/scripts/build.mjs b/tools/scripts/build.mjs index 230146e930..d77205a97f 100644 --- a/tools/scripts/build.mjs +++ b/tools/scripts/build.mjs @@ -37,13 +37,6 @@ const build = async (name) => { greenLog('Building Tsc...'); await runCommand(`yarn nx run ${name}:_buildTsc`); - greenLog('Building Vanilla...'); - try { - await runCommand(`yarn nx run ${name}:_buildWeb`); - } catch (e) { - redLog('❌ Vanilla build failed, skipping...'); - } - greenLog('Polyfilling...'); await childRunCommand(`yarn tools --polyfills ${name}`); diff --git a/tools/scripts/gen-lib.mjs b/tools/scripts/gen-lib.mjs index e3db3953f4..051097bc80 100644 --- a/tools/scripts/gen-lib.mjs +++ b/tools/scripts/gen-lib.mjs @@ -80,40 +80,6 @@ const createBuild = (name) => { }; }; -/** - * - * This function creates a new build config for esbuild, - * and add it under the "targets" property in the project.json - * @param { string } name the name of the project - * @param { object } - * @property { string } globalPrefix the prefix of the global variable - * - */ -const createBuildWeb = (name, { globalPrefix = 'LitJsSdk' }) => { - const camelCase = name.replace(/-([a-z])/g, (g) => g[1].toUpperCase()); - - return { - _buildWeb: { - executor: '@websaam/nx-esbuild:package', - options: { - globalName: `${globalPrefix}_${camelCase}`, - outfile: `dist/packages/${name}-vanilla/${name}.js`, - entryPoints: [`./packages/${name}/src/index.ts`], - define: { - 'process.env.NODE_DEBUG': 'false', - global: 'window', - }, - plugins: [ - { - package: 'esbuild-node-builtins', - function: 'nodeBuiltIns', - }, - ], - }, - }, - }; -}; - const getProject = () => { const graph = readCachedProjectGraph(); const nodes = graph.nodes; @@ -161,9 +127,6 @@ const editProjectJson = async () => { delete project.targets.build.dependsOn; project.targets['_buildTsc'] = project.targets.build; - project.targets['_buildWeb'] = createBuildWeb(PROJECT_NAME, { - globalPrefix: 'LitJsSdk', - })._buildWeb; project.targets['build'] = createBuild(PROJECT_NAME).build; // move 'lint' and 'test' objects to the end diff --git a/tools/scripts/tools.mjs b/tools/scripts/tools.mjs index 97059e755a..84e6755106 100644 --- a/tools/scripts/tools.mjs +++ b/tools/scripts/tools.mjs @@ -496,7 +496,6 @@ async function buildFunc() { } await childRunCommand(`yarn nx run ${TARGET}:_buildTsc`); - spawnListener(`yarn nx run ${TARGET}:_buildWeb`); await childRunCommand( `yarn tools --postBuildIndividual --target ${TARGET}` ); @@ -535,9 +534,6 @@ async function buildFunc() { onDone: () => { console.log('Done!'); - // // then run vanilla build - // const command = `yarn nx run-many --target=_buildWeb --exclude=${ignoreList}`; - // spawnListener(command, { // onDone: async () => { // console.log("Done!");