Can you write me a package.json file for a new typescript react-native component library…
- User
Can you write me a package.json file for a new typescript react-native component library that also has support for storybook
- Assistant
Sure, here is a sample
package.jsonfile for a new TypeScript React Native component library with support for Storybook:json{ "name": "my-component-library", "version": "1.0.0", "description": "A React Native component library", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist", "src" ], "scripts": { "start": "react-native start", "build": "tsc", "test": "jest", "storybook": "start-storybook -p 7007", "build-storybook": "build-storybook" }, "peerDependencies": { "react": "^16.13.1", "react-native": "^0.63.4" }, "devDependencies": { "@storybook/addon-actions": "^6.4.3", "@storybook/addon-links": "^6.4.3", "@storybook/react-native": "^6.4.3", "@types/jest": "^26.0.23", "@types/react": "^16.9.56", "@types/react-native": "^0.63.46", "babel-jest": "^26.6.3", "jest": "^26.6.3", "react-test-renderer": "^16.13.1", "typescript": "^4.3.5" } }Here's a brief explanation of the different parts of the
package.jsonfile:name: The name of your package.version: The version of your package.description: A short description of your package.main: The entry point to your package (in this case, the compiled JavaScript file).types: The location of your TypeScript definition file.files: An array of files that should be included in your package when it is published.scripts: A set of commands that can be executed withnpm run. This includes commands to start the React Native development server, build your library, run tests, start Storybook, and build a static version of Storybook.peerDependencies: A list of packages that your package requires in order to function properly. These packages are not installed automatically when someone installs your package, so they must be installed separately.
- User
what other files will i need to get this project running
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.