Skip to content

Commit 7fe7758

Browse files
committed
chore: add prepack/postpack to include Package.swift
1 parent a6a325d commit 7fe7758

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/capacitor-plugin/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
"clean": "rimraf ./dist",
4545
"watch": "tsc --watch",
4646
"prepublishOnly": "npm run build",
47-
"publish:cocoapod": "pod trunk push ./CapacitorGeolocation.podspec --allow-warnings"
47+
"publish:cocoapod": "pod trunk push ./CapacitorGeolocation.podspec --allow-warnings",
48+
"prepack": "cp ../../Package.swift Package.swift && node -e 'const fs=require(\"fs\");let s=fs.readFileSync(\"Package.swift\",\"utf8\").split(\"packages/capacitor-plugin/\").join(\"\");fs.writeFileSync(\"Package.swift\",s);'",
49+
"postpack": "rm -f Package.swift"
4850
},
4951
"dependencies": {
5052
"@capacitor/synapse": "^1.0.4"

0 commit comments

Comments
 (0)