@paintswap/estfor-definitions 0.1.3 → 0.1.5

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/.eslintrc.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "settings": {
3
+ "import/resolver": {
4
+ "node": {
5
+ "paths": ["./src"]
6
+ }
7
+ }
8
+ },
9
+ "env": {
10
+ "es6": true,
11
+ "browser": true,
12
+ "jest": true
13
+ },
14
+ "parser": "@typescript-eslint/parser",
15
+ "parserOptions": {
16
+ "ecmaVersion": 13,
17
+ "sourceType": "module"
18
+ },
19
+ "plugins": [
20
+ "@typescript-eslint"
21
+ ],
22
+ "rules": {
23
+ "no-console": ["warn", { "allow": ["info", "warn", "error"] }],
24
+ "no-plusplus": 0,
25
+ "prefer-destructuring": ["warn", { "object": true, "array": false }],
26
+ "no-underscore-dangle": 0
27
+ }
28
+ }
package/.prettierrc ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "trailingComma": "all",
3
+ "semi": false,
4
+ "singleQuote": true,
5
+ "printWidth": 120,
6
+ "tabWidth": 2
7
+ }
package/README.md CHANGED
@@ -5,13 +5,13 @@ Types and Constants for Estfor
5
5
 
6
6
  yarn build
7
7
 
8
- ## Publish to NPM
8
+ ## Publish to NPM (--access=public needed the first time)
9
9
 
10
- yarn publish --access=public
10
+ yarn publish
11
11
 
12
12
  ## Usage
13
13
 
14
- yarn add @estfor/definitions
14
+ yarn add @paintswap/estfor-definitions
15
15
 
16
16
  import { EstforConstants, EstforTypes } from '@paintswap/estfor-definitions'
17
17
 
package/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ export { default as NONE } from './src/lib/estforConstants'
2
+ import * as EstforTypes from './src/lib/estforTypes'
3
+ import * as EstforConstants from './src/lib/estforConstants'
4
+ export { EstforTypes, EstforConstants }
package/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "@paintswap/estfor-definitions",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Types and constants for Estfor",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/PaintSwap/estfor-definitions.git"
8
8
  },
9
- "main": "dist/index.js",
10
- "types": "dist/index.d.ts",
11
9
  "keywords": [
12
10
  "estfor",
13
11
  "paintswap",
@@ -15,15 +13,14 @@
15
13
  "web3",
16
14
  "ts",
17
15
  "js",
16
+ "as",
18
17
  "library"
19
18
  ],
20
- "files": [
21
- "dist/*"
22
- ],
19
+ "main": "index.ts",
20
+ "module": "index.ts",
21
+ "types": "index.ts",
23
22
  "scripts": {
24
- "build": "run-script-os",
25
- "build:windows": "rd /s/q dist && tsc",
26
- "build:default": "rm -rf ./dist/* && tsc",
23
+ "build": "asc --explicitStart --exportRuntime --runtime stub index.ts --lib estfor-definitions -b index.wasm",
27
24
  "prepare": "yarn build",
28
25
  "version": "git add -A src",
29
26
  "postversion": "git push && git push --tags"
@@ -37,5 +34,9 @@
37
34
  "devDependencies": {
38
35
  "run-script-os": "^1.1.6",
39
36
  "typescript": "^4.9.5"
40
- }
37
+ },
38
+ "dependencies": {
39
+ "assemblyscript": "0.19.10"
40
+ },
41
+ "ascMain": "index.ts"
41
42
  }