Skip to content

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

Open
@shirakaba

Description

@shirakaba

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions