Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The package.json's "main" and "typings" fields get overwritten upon build #13

Open
shirakaba opened this issue Dec 24, 2020 · 0 comments

Comments

@shirakaba
Copy link
Contributor

Given the following packages/expo-contacts-nativescript-plugin/package.json:

{
    "name": "@nativescript-community/expo-contacts-nativescript-plugin",
    "version": "1.0.0",
    "description": "Expo Contacts, adapted for NativeScript.",
    "main": "Contacts.js",
    "typings": "Contacts.d.ts",
    "nativescript": {
        "platforms": {
            "ios": "7.0.6",
            "android": "7.0.1"
        }
    },
    "repository": {
        "type": "git",
        "url": "https://github.com/nativescript-community/expo-nativescript.git"
    },
    "keywords": [
        "NativeScript",
        "JavaScript",
        "TypeScript",
        "iOS",
        "Android"
    ],
    "peerDependencies": {
        "@nativescript-community/expo-nativescript-adapter": "*",
        "@unimodules/core": "^5.5.1",
        "expo-contacts": "^8.6.0",
		"unimodules-file-system-interface": "^5.3.0",
        "unimodules-permissions-interface": "^5.3.0"
    },
    "devDependencies": {
        "@nativescript-community/expo-nativescript-adapter": "file:../dist/packages/expo-nativescript-adapter"
    },
    "author": {
        "name": "Jamie Birch",
        "email": "[email protected]"
    },
    "bugs": {
        "url": "https://github.com/nativescript-community/expo-nativescript"
    },
    "license": "MIT",
    "homepage": "https://github.com/nativescript-community/expo-nativescript/README.md",
    "readmeFilename": "README.md",
    "bootstrapper": "@nativescript/plugin-seed"
}

... Upon build, it the main and typings fields get rewritten thus when output to dist/packages/expo-contacts-nativescript-plugin/package.json:

    "main": "index.js",
    "typings": "index.d.ts",

Could it please be kept consistent with the source package.json?

@shirakaba shirakaba changed the title The package.json's "main" and "typings" fields get overwritten to refer upon build The package.json's "main" and "typings" fields get overwritten upon build Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant