Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
shared: Remove @zulip/shared packaging files.
Anders Kaseorg7eaf5447b41d
diff --git a/eslint.config.js b/eslint.config.jsindex a75e4b20172..29477a1e5f8 100644--- a/eslint.config.js+++ b/eslint.config.js@@ -237,7 +237,7 @@ export default defineConfig(},},{- ignores: ["web/shared/**", "web/src/**"],+ ignores: ["web/src/**"],languageOptions: {globals: globals.node,},@@ -266,7 +266,7 @@ export default defineConfig(},},{- files: ["web/shared/**", "web/src/**"],+ files: ["web/src/**"],settings: {"import/resolver": {webpack: {@@ -301,27 +301,6 @@ export default defineConfig(sourceType: "script",},},- {- files: ["web/shared/**"],- languageOptions: {- globals: globals["shared-node-browser"],- },- rules: {- "import/no-restricted-paths": [- "error",- {- zones: [- {- target: "./web/shared",- from: ".",- except: ["./node_modules", "./web/shared"],- },- ],- },- ],- "unicorn/prefer-string-replace-all": "off",- },- },astroConfigs.recommended,{files: ["starlight_help/src/components/ZulipNote.astro"],diff --git a/tools/lint b/tools/lintindex c5da6b5a81f..bba5f1f32e6 100755--- a/tools/lint+++ b/tools/lint@@ -60,7 +60,6 @@ def run() -> None:"cjs","css","cts",- "flow","hbs","html","js",diff --git a/web/shared/.gitignore b/web/shared/.gitignoredeleted file mode 100644index b94f0f85539..00000000000--- a/web/shared/.gitignore+++ /dev/null@@ -1,5 +0,0 @@-# This /node_modules doesn't ordinarily appear when developing on web.-# But it does appear when developing this package in tandem with-# mobile, using `yarn link`.-/node_modules-/libdiff --git a/web/shared/.npmrc b/web/shared/.npmrcdeleted file mode 100644index b9433a71b91..00000000000--- a/web/shared/.npmrc+++ /dev/null@@ -1,3 +0,0 @@-# When running `npm version patch` etc., let our `version` script,-# `tools/npm-version`, take care of making the new Git tag.-git-tag-version = falsediff --git a/web/shared/README.md b/web/shared/README.mddeleted file mode 100644index efc691c1a46..00000000000--- a/web/shared/README.md+++ /dev/null@@ -1,25 +0,0 @@-The files in this subtree are part of the Zulip web frontend,-and are also incorporated by the Zulip mobile app.--Note that the deployment cycles are different:--- In the web app, this code is deployed in the same way as the rest of- the web frontend: it's part of the server tree, and the browser- gets it from the server, so the client is always running the same- version the server just gave it.--- In the mobile app, this code is deployed in the same way as the- rest of the mobile app: it's bundled up into the app binary which- is uploaded to app stores and users install on their devices. The- client will be running the version built into their version of the- mobile app, which may be newer, older, or simply different from the- version on the server.-- The mobile app always refers to a specific version of this code;- changes to this code will appear in the mobile app only after a- commit in the mobile app pulls them in.--To update the version of @zulip/shared on NPM, see the-[instructions][publishing-shared] in the mobile repo.--[publishing-shared]: https://github.com/zulip/zulip-mobile/blob/main/docs/howto/shared.md#publishing-zulipshared-to-npmdiff --git a/web/shared/package.json b/web/shared/package.jsondeleted file mode 100644index 40c863b1d57..00000000000--- a/web/shared/package.json+++ /dev/null@@ -1,21 +0,0 @@-{- "name": "@zulip/shared",- "version": "0.0.18",- "license": "Apache-2.0",- "scripts": {- "prepare": "tsc --build --clean && rm -rf lib && tsc && cp src/*.flow lib",- "version": "tools/npm-version",- "postversion": "tools/npm-postversion"- },- "dependencies": {- "katex": "^0.16.2",- "lodash": "^4.17.19"- },- "devDependencies": {- "typescript": "^5.0.2"- },- "files": [- "icons",- "lib"- ]-}diff --git a/web/shared/tools/npm-postversion b/web/shared/tools/npm-postversiondeleted file mode 100755index 08a0e0de7de..00000000000--- a/web/shared/tools/npm-postversion+++ /dev/null@@ -1,29 +0,0 @@-#!/usr/bin/env bash-set -eu -o pipefail--# expect this to run as NPM script-: "${npm_package_version?}"--should_color=-if [ -t 2 ]; then # if we're sending to a terminal- should_color=yes-fi--reset=-bold=-if [ -n "${should_color}" ]; then- reset=$'\033'[0m- bold=$'\033'[1m-fi--echo >&2 "\-Version updated: ${bold}${npm_package_version}${reset}--Next steps:-- \$ ${bold}git log --stat -p upstream..${reset} # check your work!-- \$ ${bold}git push --atomic upstream main shared-${npm_package_version}${reset}-- \$ ${bold}npm publish${reset} # should prompt for an OTP, from your 2FA setup-"diff --git a/web/shared/tools/npm-version b/web/shared/tools/npm-versiondeleted file mode 100755index 8ab98a84c16..00000000000--- a/web/shared/tools/npm-version+++ /dev/null@@ -1,8 +0,0 @@-#!/usr/bin/env bash-set -eu -o pipefail--# expect this to run as NPM script-: "${npm_package_version?}"--git commit -am "shared: Bump version to ${npm_package_version}"-git tag "shared-${npm_package_version}"diff --git a/web/shared/tsconfig.json b/web/shared/tsconfig.jsondeleted file mode 100644index f7abc5c80ae..00000000000--- a/web/shared/tsconfig.json+++ /dev/null@@ -1,37 +0,0 @@-{- "compilerOptions": {- /* Type Checking */- "exactOptionalPropertyTypes": true,- "noFallthroughCasesInSwitch": true,- "noImplicitOverride": true,- "noImplicitReturns": true,- "noUncheckedIndexedAccess": true,- "noUnusedLocals": true,- "noUnusedParameters": true,- "strict": true,-- /* Modules */- "moduleResolution": "node",- "rootDir": "src",-- /* Emit */- "declaration": true,- "outDir": "lib",- "sourceMap": true,-- /* JavaScript Support */- "allowJs": true,-- /* Interop Constraints */- "esModuleInterop": true,- "forceConsistentCasingInFileNames": true,- "isolatedModules": true,-- /* Language and Environment */- "target": "esnext",-- /* Projects */- "composite": true,- },- "include": ["src"],-}