diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 71f0aea..add1dce 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,23 +1,24 @@ module.exports = { - root: true, - env: { - browser: true, - node: true, - jest: true, - }, - extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/eslint-recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:o1js/recommended', - ], - parser: '@typescript-eslint/parser', - parserOptions: { - ecmaVersion: 'latest', - }, - plugins: ['@typescript-eslint', 'o1js'], - rules: { - 'no-constant-condition': 'off', - 'prefer-const': 'off', - }, + root: true, + env: { + browser: true, + node: true, + jest: true, + }, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/eslint-recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:o1js/recommended', + ], + parser: '@typescript-eslint/parser', + parserOptions: { + ecmaVersion: 'latest', + }, + plugins: ['@typescript-eslint', 'o1js'], + ignorePatterns: ['*.sh', '*.md', '*.tgz'], + rules: { + 'no-constant-condition': 'off', + 'prefer-const': 'off', + }, }; diff --git a/.gitignore b/.gitignore index 9b5eded..e0ff910 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # NodeJS node_modules build -pkg coverage # Editor diff --git a/.prettierignore b/.prettierignore index c02e51f..d8cbeb3 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,6 +5,9 @@ coverage .husky *.yml +# Packages +*.tgz + # Editor .vscode diff --git a/package.json b/package.json index dd79bbb..776524d 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "main": "./build/esm/src/index.js", "types": "./build/types/src/index.d.ts", "scripts": { - "build": "tsc --build tsconfig.json tsconfig.cjs.json tsconfig.types.json && ./fix-export.sh", + "build": "tsc --build tsconfig.esm.json tsconfig.cjs.json tsconfig.types.json && ./fix-export.sh", "buildw": "tsc --watch", "scripts": "tsc --build tsconfig.json tsconfig.cjs.json tsconfig.types.json && ./fix-export.sh && node", "coverage": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage", @@ -39,7 +39,7 @@ ], "lint-staged": { "**/*": [ - "eslint src/* --fix --ignore-pattern *.sh --ignore-pattern *.md", + "eslint src/* --fix", "prettier --write --ignore-unknown" ] }, diff --git a/pkg/o1js-0.17.0.tgz b/pkg/o1js-0.17.0.tgz new file mode 100644 index 0000000..0916e0e Binary files /dev/null and b/pkg/o1js-0.17.0.tgz differ diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index 4236e67..d1aea82 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -1,8 +1,8 @@ { - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./build/cjs", - "module": "commonjs" - }, - "include": ["./src"] + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./build/cjs", + "module": "commonjs" + }, + "exclude": ["./src/**/*.test.ts"] } diff --git a/tsconfig.esm.json b/tsconfig.esm.json new file mode 100644 index 0000000..07db789 --- /dev/null +++ b/tsconfig.esm.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["./src/**/*.test.ts"] +} diff --git a/tsconfig.types.json b/tsconfig.types.json index 61068d5..1fbfc7f 100644 --- a/tsconfig.types.json +++ b/tsconfig.types.json @@ -1,9 +1,9 @@ { - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./build/types", - "declaration": true, - "emitDeclarationOnly": true - }, - "include": ["./src"] + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./build/types", + "declaration": true, + "emitDeclarationOnly": true + }, + "exclude": ["./src/**/*.test.ts"] }