svelte-tel-input 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintignore CHANGED
@@ -7,4 +7,4 @@ coverage
7
7
  .svelte-kit
8
8
  static
9
9
  build
10
- packages
10
+ package
@@ -27,21 +27,30 @@ jobs:
27
27
  - name: Packaging
28
28
  run: |
29
29
  npm run package
30
+ ls -l package
30
31
 
31
32
  - name: Creating .npmrc
32
33
  run: |
33
34
  cat << EOF > "$HOME/.npmrc"
34
35
  //registry.npmjs.org/:_authToken=$NPM_TOKEN
35
36
  EOF
37
+ ls package
38
+ cp $HOME/.npmrc package
36
39
  env:
37
40
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38
41
 
42
+ - name: Bump version if changeset available.
43
+ run: |
44
+ npm run changeset:version
45
+ env:
46
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
+
39
48
  - name: Create Release Pull Request or Publish to npm
40
49
  id: changesets
41
50
  uses: changesets/action@v1
42
51
  with:
43
52
  # This expects you to have a script called release which does a build for your packages and calls changeset publish
44
- publish: npm run release
53
+ publish: npm publish
45
54
  env:
46
55
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
56
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
package/.prettierignore CHANGED
@@ -4,7 +4,7 @@ build
4
4
  dist
5
5
  node_modules
6
6
  coverage
7
- packages
7
+ package
8
8
  CHANGELOG.md
9
9
  .changeset
10
10
  # .github
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # svelte-tel-input
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fix: rework ci
8
+
9
+ ### Patch Changes
10
+
11
+ - fix: minor ci fix ([#34](https://github.com/gyurielf/svelte-tel-input/pull/34))
12
+
13
+ * fix: fix ci again
14
+
15
+ - fix: last ci fix for today ([#36](https://github.com/gyurielf/svelte-tel-input/pull/36))
16
+
17
+ * fix: ci fixxx ([#33](https://github.com/gyurielf/svelte-tel-input/pull/33))
18
+
19
+ - fix: ci extend 321 ([#32](https://github.com/gyurielf/svelte-tel-input/pull/32))
20
+
21
+ ## 0.3.2
22
+
23
+ ### Patch Changes
24
+
25
+ - feat: add MIT license ([#29](https://github.com/gyurielf/svelte-tel-input/pull/29))
26
+
27
+ * fix: fix readme deps ([#29](https://github.com/gyurielf/svelte-tel-input/pull/29))
28
+
3
29
  ## 0.3.1
4
30
 
5
31
  ### Patch Changes
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 - Present Gyorgy Kallai, Budapest, Hungary.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Under development!
4
4
 
5
- ## Requirements
5
+ ## Dependencies
6
6
 
7
7
  ```
8
- $ npm install --save libphonenumber-js
8
+ $ [libphonenumber-js](https://gitlab.com/catamphetamine/libphonenumber-js)
9
9
  ```
10
10
 
11
11
  ## Installation
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "svelte-tel-input",
3
3
  "description": "svelte-tel-input",
4
- "version": "0.3.1",
4
+ "version": "0.4.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/gyurielf/svelte-tel-input.git"
@@ -22,6 +22,7 @@
22
22
  },
23
23
  "scripts": {
24
24
  "build": "svelte-kit build",
25
+ "changeset:version": "changeset version && npm i --lockfile-only",
25
26
  "dev": "svelte-kit dev",
26
27
  "eslint": "eslint --ext .js,.ts,.svelte .",
27
28
  "eslint:fix": "eslint --fix",
@@ -34,11 +35,10 @@
34
35
  "prepare": "husky install",
35
36
  "preview": "svelte-kit preview",
36
37
  "release": "npx changeset publish",
37
- "svelte-check": "svelte-check --ignore 'dist,build,coverage,.svelte-kit,packages, package' --threshold warning --fail-on-warnings",
38
+ "svelte-check": "svelte-check --ignore 'dist,build,coverage,.svelte-kit,package' --threshold warning --fail-on-warnings",
38
39
  "test": "jest",
39
40
  "test:watch": "jest --watch",
40
- "ts": "tsc --noEmit",
41
- "changeset:version": "changeset version && npm i --lockfile-only"
41
+ "ts": "tsc --noEmit"
42
42
  },
43
43
  "dependencies": {
44
44
  "libphonenumber-js": "^1.9.44"
package/svelte.config.js CHANGED
@@ -12,7 +12,6 @@ export default {
12
12
  kit: {
13
13
  target: '#svelte',
14
14
  package: {
15
- dir: './packages/svelte-tel-input',
16
15
  // TODO create a single .JS file export.
17
16
  exports: (filepath) => {
18
17
  if (filepath.endsWith('.d.ts')) return false;
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "outDir": "packages",
3
+ "outDir": "package",
4
4
  "moduleResolution": "node",
5
5
  "module": "ES2020",
6
6
  "lib": ["ES2020", "DOM"],