diff --git a/build-system/compile/bundles.config.extensions.json b/build-system/compile/bundles.config.extensions.json index 05c6f382b16cd..a85d17d704780 100644 --- a/build-system/compile/bundles.config.extensions.json +++ b/build-system/compile/bundles.config.extensions.json @@ -635,7 +635,15 @@ "cssBinaries": ["amp-truncate-text", "amp-truncate-text-shadow"] } }, - {"name": "amp-twitter", "version": ["0.1", "1.0"], "latestVersion": "0.1"}, + {"name": "amp-twitter", "version": "0.1", "latestVersion": "0.1"}, + { + "name": "amp-twitter", + "version": "1.0", + "latestVersion": "0.1", + "options": { + "npm": true + } + }, { "name": "amp-user-notification", "version": "0.1", diff --git a/extensions/amp-twitter/1.0/package.json b/extensions/amp-twitter/1.0/package.json new file mode 100644 index 0000000000000..6b280db874981 --- /dev/null +++ b/extensions/amp-twitter/1.0/package.json @@ -0,0 +1,31 @@ +{ + "name": "@ampproject/amp-twitter", + "version": "VERSION", + "description": "AMP Twitter Component", + "author": "The AMP HTML Authors", + "license": "Apache-2.0", + "main": "dist/component.js", + "module": "dist/component.mjs", + "exports": { + ".": "./preact", + "./preact": { + "import": "dist/component-preact.mjs", + "require": "dist/component-preact.js" + }, + "./react": { + "import": "dist/component-react.mjs", + "require": "dist/component-react.js" + } + }, + "files": ["dist/*"], + "repository": { + "type": "git", + "url": "https://github.com/ampproject/amphtml.git", + "directory": "extensions/amp-twitter/1.0" + }, + "homepage": "https://github.com/ampproject/amphtml/tree/main/extensions/amp-twitter/1.0", + "peerDependencies": { + "preact": "^10.2.1", + "react": "^17.0.0" + } +}