Skip to content

Commit

Permalink
Attempt to fix sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
dqbd committed Mar 2, 2023
1 parent ef77b1a commit b04f0cf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 150 deletions.
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ include Makefile
global-include py.typed
recursive-include scripts *.py
recursive-include tests *.py
recursive-include src *.rs
recursive-include core *.rs *.toml
recursive-include python *.rs *.toml
include tiktoken *.json
26 changes: 13 additions & 13 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,31 @@
"package.json"
],
"license": "Apache-2.0",
"main": "dist/node/_tiktoken.js",
"browser": "dist/web/_tiktoken.js",
"types": "dist/node/_tiktoken.d.ts",
"main": "dist/node/_tiktoken_js.js",
"browser": "dist/web/_tiktoken_js.js",
"types": "dist/node/_tiktoken_js.d.ts",
"exports": {
".": {
"node": {
"types": "./dist/node/_tiktoken.d.ts",
"default": "./dist/node/_tiktoken.js"
"types": "./dist/node/_tiktoken_js.d.ts",
"default": "./dist/node/_tiktoken_js.js"
},
"default": {
"types": "./dist/bundler/_tiktoken.d.js",
"default": "./dist/bundler/_tiktoken.mjs"
"types": "./dist/bundler/_tiktoken_js.d.js",
"default": "./dist/bundler/_tiktoken_js.mjs"
}
},
"./bundler": {
"types": "./dist/bundler/_tiktoken.d.ts",
"default": "./dist/bundler/_tiktoken.mjs"
"types": "./dist/bundler/_tiktoken_js.d.ts",
"default": "./dist/bundler/_tiktoken_js.mjs"
},
"./web": {
"types": "./dist/web/_tiktoken.d.ts",
"default": "./dist/web/_tiktoken.js"
"types": "./dist/web/_tiktoken_js.d.ts",
"default": "./dist/web/_tiktoken_js.js"
},
"./node": {
"types": "./dist/node/_tiktoken.d.ts",
"default": "./dist/node/_tiktoken.js"
"types": "./dist/node/_tiktoken_js.d.ts",
"default": "./dist/node/_tiktoken_js.js"
}
},
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ test-skip = "*-macosx_arm64"
before-test = "pip install pytest"
test-command = "pytest {project}/tests"

[tool.check-manifest]
ignore = ["js", "jni", "java"]
136 changes: 0 additions & 136 deletions tests/test_simple_public.test.ts

This file was deleted.

0 comments on commit b04f0cf

Please sign in to comment.