New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stencil/react-output-target

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stencil/react-output-target - npm Package Compare versions

Comparing version 0.0.1-dev.11711372539.10de27e3 to 0.0.1-dev.11712339520.1220c57d

./dist/react-output-target.js

76

package.json
{
"name": "@stencil/react-output-target",
"version": "0.0.1-dev.11711372539.10de27e3",
"version": "0.0.1-dev.11712339520.1220c57d",
"description": "React output target for @stencil/core components.",
"main": "dist/index.cjs.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./dist/react-output-target.js",
"module": "./dist/react-output-target.js",
"types": "./dist/react-output-target/index.d.ts",
"type": "module",
"files": [
"dist/",
"react-component-lib/"
"dist/"
],

@@ -17,12 +17,11 @@ "publishConfig": {

"prepublishOnly": "npm run build",
"prebuild": "rimraf ./dist",
"build": "tsc && npm run rollup",
"watch": "tsc --watch",
"rollup": "rollup -c",
"build": "vite build && npm run build:dts",
"build:dts": "tsc -p tsconfig.json",
"build:tsup": "tsup",
"version": "npm run build",
"prettier": "npm run prettier.base -- --write",
"prettier.base": "prettier \"./({react-component-lib,src,test,__tests__}/**/*.{ts,tsx,js,jsx})|*.{ts,tsx,js,jsx}\"",
"prettier.dry-run": "npm run prettier.base -- --list-different",
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\" --write",
"release": "np",
"test": "jest"
"test": "vitest run",
"test:watch": "vitest",
"coverage": "vitest run --coverage"
},

@@ -40,29 +39,36 @@ "repository": {

"peerDependencies": {
"@stencil/core": ">=2.0.0 || >=3 || >= 4.0.0-beta.0 || >= 4.0.0"
"@stencil/core": ">=3 || >= 4.0.0-beta.0 || >= 4.0.0"
},
"devDependencies": {
"@types/react": "^16.7.0",
"@types/react-dom": "^16.7.0",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-testing-library": "^7.0.0"
"react": "^18.2.0",
"ts-dedent": "^2.2.0",
"typescript": "^5.4.4",
"vite": "^5.0.0",
"vite-plugin-dts": "^3.8.1",
"vitest": "^1.4.0"
},
"jest": {
"transform": {
"^.+\\.(js|ts|tsx)$": "<rootDir>/test/jest.preprocessor.js"
},
"testRegex": "(\\.(test|spec))\\.(ts?|tsx?|jsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json",
"jsx"
],
"testURL": "http://localhost"
},
"gitHead": "0de27e325f2697a448cc8b3eb7495e814fe540cd",
"gitHead": "220c57d890b57d6d1b3bfc8afd93a261432ea3f4",
"volta": {
"extends": "../../package.json"
},
"dependencies": {
"@lit/react": "^1.0.4",
"ts-morph": "^22.0.0"
},
"exports": {
".": {
"types": "./dist/react-output-target/index.d.ts",
"node": {
"default": "./dist/react-output-target.cjs"
},
"default": "./dist/react-output-target.js"
},
"./runtime": {
"types": "./dist/react/index.d.ts",
"browser": {
"default": "./dist/react.js"
},
"default": "./dist/react.js"
}
}
}

@@ -15,3 +15,3 @@ # @stencil/react-output-target

```bash
npm install @stencil/react-output-target
npm install @stencil/react-output-target --save-dev
```

@@ -31,8 +31,6 @@

reactOutputTarget({
componentCorePackage: 'component-library',
proxiesFile: '../component-library-react/src/components.ts',
outDir: '../component-library-react/src/',
}),
{
type: 'dist',
esmLoaderPath: '../loader',
type: 'dist-custom-elements',
},

@@ -45,11 +43,8 @@ ],

| Property | Description |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `componentCorePackage` | The NPM package name of your Stencil component library. This package is used as a dependency for your React wrappers. |
| `proxiesFile` | The output file of all the component wrappers generated by the output target. This file path should point to a location within your React library/project. |
| `excludeComponents` | An array of tag names to exclude from generating component wrappers for. This is helpful when have a custom framework implementation of a specific component or need to extend the base component wrapper behavior. |
| `loaderDir` | This is the path to where the `defineCustomElements` function exists in your built project. If `loaderDir` is not provided, the `/dist/loader` directory will be used. |
| `includePolyfills` | If `true`, polyfills will automatically be imported and the `applyPolyfills` function will be called in your proxies file. This can only be used when lazy loading Web Components and will not work when `includeImportCustomElements` is `true`. |
| `includeDefineCustomElements` | If `true`, all Web Components will automatically be registered with the Custom Elements Registry. This can only be used when lazy loading Web Components and will not work when `includeImportCustomElements` is `true`. |
| `includeImportCustomElements` | If `true`, the output target will import the custom element instance and register it with the Custom Elements Registry when the component is imported inside of a user's app. This can only be used with the [Custom Elements Bundle](https://stenciljs.com/docs/custom-elements) and will not work with lazy loaded components. |
| `customElementsDir` | This is the directory where the custom elements are imported from when using the [Custom Elements Bundle](https://stenciljs.com/docs/custom-elements). Defaults to the `components` directory. Only applies when `includeImportCustomElements` is `true`. |
| Property | Description |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `outDir` | The directory where the React components will be generated. |
| `esModule` | If `true`, the output target will generate ES module files for each React component wrapper. Defaults to `false`. |
| `stencilPackageName` | The name of the package that exports the Stencil components. Defaults to the package.json detected by the Stencil compiler. |
| `excludeComponents` | An array of component tag names to exclude from the React output target. |
| `experimentalUseClient` | If `true`, the generated output target will include the [`use client;`](https://react.dev/reference/react/use-client) directive. |
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc