Skip to content

Commit 2cf9659

Browse files
Removed a useless prepack script, and ignored iOS typings for the npm package
1 parent 245c04f commit 2cf9659

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
!*.d.ts
44
tsconfig.json
55
scripts/*
6+
platforms/ios/typings
67
platforms/android/*
78
!platforms/android/include.gradle
89
!platforms/android/*.aar

src/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
},
1313
"scripts": {
1414
"tsc": "tsc",
15-
"build": "npm run tsc && npm run build.native",
16-
"build.native": "node scripts/build-native.js",
15+
"build": "npm run tsc",
1716
"postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i && npx rimraf -- package-lock.json && cd ../src",
1817
"test.android": "npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
1918
"test.ios": "npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
@@ -25,7 +24,6 @@
2524
"plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-https && tns plugin add ../src",
2625
"clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm i",
2726
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'",
28-
"prepack": "npm run build.native",
2927
"generate.typings.ios": "cd ../demo && TNS_DEBUG_METADATA_PATH=\"$(pwd)/metadata\" tns build ios && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/typings\" tns build ios && echo 'Now look for your library typings in demo/typings!'",
3028
"generate.typings.android": "echo '##### Download the latest .jar file from https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp and move it to the plugin /src folder' && java -jar ../../android-dts-generator/dts-generator/build/libs/dts-generator.jar -input ./*.jar -output platforms/android/typings/ && rimraf *.jar && echo '##### Done! Deleted the jar, and generated typings in src/platforms/android/typings/'"
3129
},

0 commit comments

Comments
 (0)