Skip to content

Commit ae678c2

Browse files
Merge pull request #21 from elemental-design/feat/svg
initial release of @react-platform/svg
2 parents 35dc9df + ce5ace9 commit ae678c2

16 files changed

+1916
-44
lines changed

packages/svg/package-lock.json

Lines changed: 987 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/svg/package.json

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,39 @@
11
{
22
"name": "@react-platform/svg",
3-
"version": "1.0.0",
3+
"version": "0.0.1",
44
"description": "Cross-platform React SVG primitives",
5-
"main": "index.js",
5+
"main": "lib/cjs/core.js",
6+
"sketch": "lib/esm/core.sketch.js",
7+
"types": "lib/cjs/core.native.d.ts",
68
"scripts": {
9+
"clean": "rm -rf lib/",
10+
"build:main": "tsc -p tsconfig.json",
11+
"build:module": "tsc -p tsconfig.module.json",
12+
"build:js": "npm run build:main && npm run build:module",
13+
"copy:types": "mkdir lib/@types && cp -r src/@types/ lib/@types/",
14+
"build:types": "tsc -d -p tsconfig.json && npm run copy:types",
15+
"build": "npm run clean && npm run build:js && npm run build:types",
716
"test": "echo \"Error: no test specified\" && exit 1"
817
},
918
"keywords": [],
1019
"author": "",
1120
"license": "ISC",
1221
"devDependencies": {
13-
"react-native-svg": "^12.1.0"
22+
"@react-platform/core": "0.0.2-beta.0",
23+
"@types/node": "^17.0.21",
24+
"react-native-svg": "^12.3.0",
25+
"react-sketchapp": "^3.2.6",
26+
"typescript": "^4.6.2"
27+
},
28+
"dependencies": {
29+
"@types/react": "^17.0.40",
30+
"@types/react-native": "^0.67.3"
31+
},
32+
"peerDependencies": {
33+
"@react-platform/core": ">= 0.0.1"
34+
},
35+
"optionalDependencies": {
36+
"react-sketchapp": ">= 3",
37+
"react-native-svg": "*"
1438
}
1539
}

0 commit comments

Comments
 (0)