Skip to content

Commit eae485a

Browse files
author
Krzysztof Borowy
committed
fix: naming, ignoring publish files
1 parent 9037a3a commit eae485a

File tree

8 files changed

+73
-94
lines changed

8 files changed

+73
-94
lines changed

.npmignore

Lines changed: 0 additions & 85 deletions
This file was deleted.

examples/mobile/.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"alias": {
77
"@react-native-community/async-storage": "../../packages/core/build",
8-
"@react-native-community/async-storage-legacy": "../../packages/storage-legacy/build"
8+
"@react-native-community/async-storage-backend-legacy": "../../packages/storage-legacy/build"
99
},
1010
"cwd": "babelrc"
1111
}

examples/mobile/src/legacy/storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import LegacyStorage from '@react-native-community/async-storage-legacy';
1+
import LegacyStorage from '@react-native-community/async-storage-backend-legacy';
22
import AsyncStorageFactory from '@react-native-community/async-storage';
33

44

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"packages": [
33
"core",
4-
"storages/*"
4+
"storages-*"
55
],
66
"version": "independent",
77
"npmClient": "yarn",

packages/core/.npmignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Core
2+
node_modules
3+
yarn.lock
4+
src/
5+
__tests__/
6+
CONTRIBUTING.md
7+
CODE_OF_CONDUCT.md
8+
9+
10+
########## Trash ##########
11+
.DS_Store
12+
.DS_Store?
13+
*.DS_Store
14+
coverage.android.json
15+
coverage.ios.json
16+
coverage
17+
npm-debug.log
18+
.github
19+
._*
20+
.Spotlight-V100
21+
.Trashes
22+
ehthumbs.db
23+
Thumbs.dbandroid/gradle
24+
.idea
25+
bin/test.js
26+
codorials
27+
.vscode
28+
.nyc_output
29+
yarn-error.log
30+

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"name": "@react-native-community/async-storage",
33
"version": "2.0.0",
44
"main": "build/index.js",
5-
"files": ["build/**/*"],
65
"types": "types/index.d.ts",
76
"author": "Krzysztof Borowy <dev@krizzu.dev>",
87
"license": "MIT",
98
"scripts": {
109
"build": "babel src --root-mode upward --out-dir build/ --extensions .ts --ignore build/**/* --ignore types/* --source-maps inline",
1110
"clean": "rm build -rf",
12-
"start": "yarn build:lib --watch"
11+
"start": "yarn build:lib --watch",
12+
"prepublish": "yarn clean && yarn build"
1313
}
1414
}

packages/storage-legacy/.npmignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Legacy storage backend
2+
node_modules
3+
yarn.lock
4+
# see https://github.com/yarnpkg/yarn/issues/7540
5+
./src/
6+
CONTRIBUTING.md
7+
CODE_OF_CONDUCT.md
8+
android/build/
9+
ios/*.xcodeproj/xcuserdata
10+
11+
########## Trash ##########
12+
.DS_Store
13+
.DS_Store?
14+
*.DS_Store
15+
coverage.android.json
16+
coverage.ios.json
17+
coverage
18+
npm-debug.log
19+
.github
20+
._*
21+
.Spotlight-V100
22+
.Trashes
23+
ehthumbs.db
24+
Thumbs.dbandroid/gradle
25+
.idea
26+
bin/test.js
27+
codorials
28+
.vscode
29+
.nyc_output
30+
yarn-error.log

packages/storage-legacy/package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
2-
"name": "@react-native-community/async-storage-legacy",
2+
"name": "@react-native-community/async-storage-backend-legacy",
33
"version": "2.0.0",
4-
"main": "build/LegacyAsyncStorage.js",
4+
"main": "build/index.js",
55
"types": "types/index.d.ts",
66
"author": "Krzysztof Borowy <dev@krizzu.dev>",
77
"license": "MIT",
88
"scripts": {
9-
"build": "babel src --root-mode upward --out-dir build/ --extensions .ts --ignore build/**/* --ignore types/* --source-maps inline",
9+
"build": "babel src --root-mode upward --out-dir build/ --extensions .ts --ignore build/**/* --ignore types/**/* --source-maps inline",
1010
"clean": "rm build -rf",
11-
"generate:types": "tsc src/index.ts --noEmit false --lib es2015 --declarationDir types/ -d true -emitDeclarationOnly true"
11+
"generate:types": "tsc src/index.ts --noEmit false --lib es2015 --declarationDir types/ -d true -emitDeclarationOnly true",
12+
"prepublish": "yarn clean && yarn build"
13+
},
14+
"dependencies": {
15+
"@react-native-community/async-storage": "^2.0"
1216
},
1317
"peerDependencies": {
1418
"react": "^16.0",

0 commit comments

Comments
 (0)